class OAuthenticator::Error

OAuthenticator::Error represents some problem with authenticating. it has an errors attribute with error messages in the form we use.

Public Class Methods

new(message=nil, errors=nil) click to toggle source

@param message [String] @param errors [Hash<String, Array<String>>]

Calls superclass method
# File lib/oauthenticator/parse_authorization.rb, line 7
def initialize(message=nil, errors=nil)
  super(message)
  @errors = errors
end

Public Instance Methods

errors() click to toggle source

@return [Hash<String, Array<String>>]

# File lib/oauthenticator/parse_authorization.rb, line 13
def errors
  @errors ||= Hash.new { |h,k| h[k] = [] }
end