Exception: Apimaster::UnauthorizedError

Inherits:
NormalError
  • Object
show all
Defined in:
lib/apimaster/error.rb

Instance Attribute Summary

Attributes inherited from NormalError

#code, #error, #field, #resource

Instance Method Summary collapse

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