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
Instance Method Summary collapse
-
#initialize(message:, code:, source: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message:, code:, source: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
43 44 45 46 47 48 49 50 |
# File 'lib/shipengine/exceptions.rb', line 43 def initialize(message:, code:, source: nil) super( code: code, source: source, message: , type: ShipEngine::Errors::ErrorType.get(:VALIDATION), ) end |