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