Exception: Ashikawa::Core::AuthenticationFailed

Inherits:
ClientError
  • Object
show all
Defined in:
lib/ashikawa-core/exceptions/client_error/authentication_failed.rb

Overview

This exception is thrown when the client is not authorized

Instance Method Summary collapse

Methods inherited from ClientError

#default_error_message

Constructor Details

#initializeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create a new authentication failure



12
13
14
# File 'lib/ashikawa-core/exceptions/client_error/authentication_failed.rb', line 12

def initialize
  super(401)
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

String representation of the exception

Returns:

  • String



20
21
22
# File 'lib/ashikawa-core/exceptions/client_error/authentication_failed.rb', line 20

def to_s
  'Status 401: Authentication failed'
end