Exception: Apimaster::UnauthorizedError
- Inherits:
-
NormalError
- Object
- StandardError
- NormalError
- Apimaster::UnauthorizedError
- Defined in:
- lib/apimaster/error.rb
Instance Attribute Summary
Attributes inherited from NormalError
#code, #error, #field, #resource
Instance Method Summary collapse
-
#initialize(resource = nil, field = nil) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Constructor Details
#initialize(resource = nil, field = nil) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
62 63 64 |
# File 'lib/apimaster/error.rb', line 62 def initialize(resource = nil, field = nil) super("Your authorization token were invalid.", 401, :unauthorized, resource, field) end |