Exception: USPSFlags::Errors::ZipGenerationError

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 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

#causeObject (readonly)

Returns the value of attribute cause.



33
34
35
# File 'lib/usps_flags/errors.rb', line 33

def cause
  @cause
end

#typeObject (readonly)

Returns the value of attribute type.



33
34
35
# File 'lib/usps_flags/errors.rb', line 33

def type
  @type
end