Exception: Brightpearl::InvalidToken
- Inherits:
-
StandardError
- Object
- StandardError
- Brightpearl::InvalidToken
- Defined in:
- lib/brightpearl/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, response: nil, status: nil) ⇒ InvalidToken
constructor
A new instance of InvalidToken.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
27 28 29 |
# File 'lib/brightpearl/errors.rb', line 27 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
27 28 29 |
# File 'lib/brightpearl/errors.rb', line 27 def status @status end |