Exception: Brightpearl::InvalidToken

Inherits:
StandardError
  • Object
show all
Defined in:
lib/brightpearl/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response: nil, status: nil) ⇒ InvalidToken

Returns a new instance of InvalidToken.



28
29
30
31
32
# File 'lib/brightpearl/errors.rb', line 28

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



27
28
29
# File 'lib/brightpearl/errors.rb', line 27

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



27
28
29
# File 'lib/brightpearl/errors.rb', line 27

def status
  @status
end