Exception: Rack::OAuth2::Server::OAuthError
- Inherits:
-
StandardError
- Object
- StandardError
- Rack::OAuth2::Server::OAuthError
- Defined in:
- lib/rack/oauth2/server/errors.rb
Overview
Base class for all OAuth errors. These map to error codes in the spec.
Direct Known Subclasses
AccessDeniedError, ExpiredTokenError, InvalidClientError, InvalidGrantError, InvalidRequestError, InvalidScopeError, InvalidTokenError, RedirectUriMismatchError, UnauthorizedClientError, UnsupportedGrantType, UnsupportedResponseTypeError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
The OAuth error code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ OAuthError
constructor
A new instance of OAuthError.
Constructor Details
#initialize(code, message) ⇒ OAuthError
Returns a new instance of OAuthError.
8 9 10 11 |
# File 'lib/rack/oauth2/server/errors.rb', line 8 def initialize(code, ) super @code = code.to_sym end |
Instance Attribute Details
#code ⇒ Object (readonly)
The OAuth error code.
14 15 16 |
# File 'lib/rack/oauth2/server/errors.rb', line 14 def code @code end |