Exception: Core::Service::Authentication::UnauthenticatedError
- Inherits:
-
Error
- Object
- StandardError
- Error
- Core::Service::Authentication::UnauthenticatedError
- Defined in:
- app/api/core/service/authentication.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Error::Behaviour
Class Method Details
.no_cookie! ⇒ Object
4 5 6 |
# File 'app/api/core/service/authentication.rb', line 4 def self. raise self, 'no authentication provided' end |
.unauthenticated! ⇒ Object
8 9 10 |
# File 'app/api/core/service/authentication.rb', line 8 def self.unauthenticated! raise self, 'could not be authenticated' end |
Instance Method Details
#api_error(response) ⇒ Object
12 13 14 |
# File 'app/api/core/service/authentication.rb', line 12 def api_error(response) response.general_error(401) end |