Exception: OAuthenticator::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OAuthenticator::Error
- Defined in:
- lib/oauthenticator/parse_authorization.rb
Overview
OAuthenticator::Error represents some problem with authenticating. it has an #errors attribute with error messages in the form we use.
Direct Known Subclasses
Instance Method Summary collapse
- #errors ⇒ Hash<String, Array<String>>
-
#initialize(message = nil, errors = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, errors = nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/oauthenticator/parse_authorization.rb', line 7 def initialize(=nil, errors=nil) super() @errors = errors end |
Instance Method Details
#errors ⇒ Hash<String, Array<String>>
13 14 15 |
# File 'lib/oauthenticator/parse_authorization.rb', line 13 def errors @errors ||= Hash.new { |h,k| h[k] = [] } end |