Exception: AppIdentity::Error

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#messageObject (readonly)

:nodoc:



10
11
12
# File 'lib/app_identity/error.rb', line 10

def message
  @message
end