Exception: USPSFlags::Errors::ZipGenerationError
- Inherits:
-
StandardError
- Object
- StandardError
- USPSFlags::Errors::ZipGenerationError
- Defined in:
- lib/usps_flags/errors.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(msg = 'There was an error generating the zip file.', type: nil, cause: nil) ⇒ ZipGenerationError
constructor
A new instance of ZipGenerationError.
Constructor Details
#initialize(msg = 'There was an error generating the zip file.', type: nil, cause: nil) ⇒ ZipGenerationError
Returns a new instance of ZipGenerationError.
35 36 37 38 39 |
# File 'lib/usps_flags/errors.rb', line 35 def initialize(msg = 'There was an error generating the zip file.', type: nil, cause: nil) super(msg) @type = type @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
33 34 35 |
# File 'lib/usps_flags/errors.rb', line 33 def cause @cause end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
33 34 35 |
# File 'lib/usps_flags/errors.rb', line 33 def type @type end |