Module: Rack::OAuth2::Server::Resource::Bearer::ErrorMethods

Includes:
ErrorMethods
Defined in:
lib/rack/oauth2/server/resource/bearer/error.rb

Constant Summary

Constants included from ErrorMethods

ErrorMethods::DEFAULT_DESCRIPTION

Instance Method Summary collapse

Methods included from ErrorMethods

#bad_request!, #forbidden!, included

Instance Method Details

#unauthorized!(error = nil, description = nil, options = {}) ⇒ Object

Raises:



14
15
16
# File 'lib/rack/oauth2/server/resource/bearer/error.rb', line 14

def unauthorized!(error = nil, description = nil, options = {})
  raise Unauthorized.new(error, description, options)
end