Exception: Clavis::AuthorizationDenied

Inherits:
AuthorizationError show all
Defined in:
lib/clavis/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(provider = nil) ⇒ AuthorizationDenied

Returns a new instance of AuthorizationDenied.



80
81
82
83
# File 'lib/clavis/errors.rb', line 80

def initialize(provider = nil)
  message = provider ? "User denied authorization for #{provider}" : "User denied authorization"
  super(message)
end