Exception: ShipEngine::Exceptions::SystemError

Inherits:
ShipEngineError show all
Defined in:
lib/shipengine/exceptions.rb

Direct Known Subclasses

RateLimitError

Instance Attribute Summary

Attributes inherited from ShipEngineError

#code, #source, #type, #url

Instance Method Summary collapse

Constructor Details

#initialize(message:, code:, source: nil, url: nil) ⇒ SystemError

Returns a new instance of SystemError.



54
55
56
57
58
59
60
61
62
# File 'lib/shipengine/exceptions.rb', line 54

def initialize(message:, code:, source: nil, url: nil)
  super(
    url: url,
    code: code,
    source: source,
    message: message,
    type: ShipEngine::Errors::ErrorType.get(:SYSTEM),
  )
end