Exception: Exceptions::UnauthorizedApplication
- Defined in:
- lib/exceptions/unauthorized_application.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
return the error status.
Attributes inherited from Base
Instance Method Summary collapse
-
#error ⇒ String
for standard errors this method build a hash.
-
#message ⇒ String
return the error message.
Methods inherited from Base
build, #initialize, #model?, #simple?
Constructor Details
This class inherits a constructor from Exceptions::Base
Instance Attribute Details
#status ⇒ Object
return the error status
24 25 26 |
# File 'lib/exceptions/unauthorized_application.rb', line 24 def status @status end |
Instance Method Details
#error ⇒ String
for standard errors this method build a hash
9 10 11 12 13 14 15 |
# File 'lib/exceptions/unauthorized_application.rb', line 9 def error { error: { message: self.object[:message] } } end |
#message ⇒ String
return the error message
19 20 21 |
# File 'lib/exceptions/unauthorized_application.rb', line 19 def self.object[:message] end |