Exception: USPSFlags::Errors::PNGGenerationError
- Inherits:
-
StandardError
- Object
- StandardError
- USPSFlags::Errors::PNGGenerationError
- Defined in:
- lib/usps_flags/errors.rb
Instance Attribute Summary collapse
-
#svg ⇒ Object
readonly
Returns the value of attribute svg.
Instance Method Summary collapse
-
#initialize(msg = 'There was an error generating the PNG file.', svg: '') ⇒ PNGGenerationError
constructor
A new instance of PNGGenerationError.
Constructor Details
#initialize(msg = 'There was an error generating the PNG file.', svg: '') ⇒ PNGGenerationError
Returns a new instance of PNGGenerationError.
11 12 13 14 |
# File 'lib/usps_flags/errors.rb', line 11 def initialize(msg = 'There was an error generating the PNG file.', svg: '') super(msg) @svg = svg end |
Instance Attribute Details
#svg ⇒ Object (readonly)
Returns the value of attribute svg.
9 10 11 |
# File 'lib/usps_flags/errors.rb', line 9 def svg @svg end |