Exception: ShipEngine::Exceptions::ValidationError

Inherits:
ShipEngineError
  • Object
show all
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

Constructor Details

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

Returns a new instance of ValidationError.



27
28
29
# File 'lib/shipengine/exceptions.rb', line 27

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