Exception: ShopCircle::Orbit::ClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/shopcircle/orbit/errors.rb

Overview

Raised on 4xx responses not covered above.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil) ⇒ ClientError

Returns a new instance of ClientError.



27
28
29
30
# File 'lib/shopcircle/orbit/errors.rb', line 27

def initialize(message, status: nil)
  @status = status
  super(message)
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



25
26
27
# File 'lib/shopcircle/orbit/errors.rb', line 25

def status
  @status
end