Exception: JwtAuthenticable::Exceptions::AuthorizationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jwt_authenticable/exceptions.rb

Overview

Generic exception during the authorization process

Instance Method Summary collapse

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

#messageObject



46
47
48
# File 'lib/jwt_authenticable/exceptions.rb', line 46

def message
  "Authorization error: #{@msg}"
end