Method: Rack::OAuth2::Server::OAuthError#initialize

Defined in:
lib/rack/oauth2/server/errors.rb

#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, message)
  super message
  @code = code.to_sym
end