Exception: TsJsonApi::AccessTokenRefused
- Defined in:
- lib/ts_json_api/exceptions.rb
Overview
This exception is thrown when we aren’t authorized to access the server
Instance Attribute Summary
Attributes inherited from Exception
#http_code, #message, #rest_client_exception
Instance Method Summary collapse
-
#initialize(*args) ⇒ AccessTokenRefused
constructor
A new instance of AccessTokenRefused.
Methods inherited from Exception
Constructor Details
#initialize(*args) ⇒ AccessTokenRefused
Returns a new instance of AccessTokenRefused.
38 39 40 41 42 43 |
# File 'lib/ts_json_api/exceptions.rb', line 38 def initialize(*args) = args. .merge! http_code: 401 super self. = 'Access token refused' end |