Exception: USPSFlags::Errors::PNGGenerationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/usps_flags/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#svgObject (readonly)

Returns the value of attribute svg.



9
10
11
# File 'lib/usps_flags/errors.rb', line 9

def svg
  @svg
end