Exception: ShipEngine::Exceptions::ValidationError
- Inherits:
-
ShipEngineError
- Object
- StandardError
- ShipEngineError
- ShipEngine::Exceptions::ValidationError
- Defined in:
- lib/shipengine/exceptions.rb
Overview
400 error, or other “user exceptions”
Instance Attribute Summary
Attributes inherited from ShipEngineError
#code, #request_id, #source, #type, #url
Instance Method Summary collapse
-
#initialize(message:, code:, source: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message:, code:, source: nil) ⇒ ValidationError
44 45 46 47 48 49 50 51 |
# File 'lib/shipengine/exceptions.rb', line 44 def initialize(message:, code:, source: nil) super( code: code, source: source, message: , type: ShipEngine::Errors::ErrorType.get(:VALIDATION), ) end |