Exception: JwtAuthenticable::Exceptions::AuthorizationError
- Inherits:
-
StandardError
- Object
- StandardError
- JwtAuthenticable::Exceptions::AuthorizationError
- Defined in:
- lib/jwt_authenticable/exceptions.rb
Overview
Generic exception during the authorization process
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ AuthorizationError
constructor
A new instance of AuthorizationError.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ AuthorizationError
Returns a new instance of AuthorizationError.
41 42 43 44 |
# File 'lib/jwt_authenticable/exceptions.rb', line 41 def initialize(msg = nil) @msg = msg super(msg) end |
Instance Method Details
#message ⇒ Object
46 47 48 |
# File 'lib/jwt_authenticable/exceptions.rb', line 46 def "Authorization error: #{@msg}" end |