Exception: USPSFlags::Errors::StaticFilesGenerationError

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 static files.', cause: nil) ⇒ StaticFilesGenerationError

Returns a new instance of StaticFilesGenerationError.



26
27
28
29
# File 'lib/usps_flags/errors.rb', line 26

def initialize(msg = 'There was an error generating the static files.', cause: nil)
  super(msg)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



24
25
26
# File 'lib/usps_flags/errors.rb', line 24

def cause
  @cause
end