Exception: ShipEngine::Exceptions::BusinessRulesError

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

Instance Attribute Summary

Attributes inherited from ShipEngineError

#code, #request_id, #source, #type, #url

Instance Method Summary collapse

Constructor Details

#initialize(message:, code:, request_id: nil, source: nil) ⇒ BusinessRulesError

Returns a new instance of BusinessRulesError.



55
56
57
# File 'lib/shipengine/exceptions.rb', line 55

def initialize(message:, code:, request_id: nil, source: nil)
  super(message:, source:, type: Exceptions::ErrorType.get(:BUSINESS_RULES), code:, request_id:)
end