Exception: AppIdentity::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AppIdentity::Error
- Defined in:
- lib/app_identity/error.rb
Overview
An exception that will be raised by AppIdentity.generate_proof!, AppIdentity.parse_proof!, or AppIdentity.verify_proof! when those functions fail. The error message reported here is always generic.
This can also be raised by AppIdentity::RackMiddleware on configuration failure.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(type) ⇒ Error
constructor
:nodoc:.
Constructor Details
#initialize(type) ⇒ Error
:nodoc:
12 13 14 |
# File 'lib/app_identity/error.rb', line 12 def initialize(type) # :nodoc: @message = resolve(type) end |
Instance Attribute Details
#message ⇒ Object (readonly)
:nodoc:
10 11 12 |
# File 'lib/app_identity/error.rb', line 10 def @message end |