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, #source, #type, #url

Instance Method Summary collapse

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: message,
    type: ShipEngine::Errors::ErrorType.get(:VALIDATION),
  )
end