class Ashikawa::Core::AuthenticationFailed

This exception is thrown when the client is not authorized

Public Class Methods

new() click to toggle source

Create a new authentication failure

@return RuntimeError @api private

Calls superclass method Ashikawa::Core::ClientError::new
# File lib/ashikawa-core/exceptions/client_error/authentication_failed.rb, line 11
def initialize
  super(401)
end

Public Instance Methods

to_s() click to toggle source

String representation of the exception

@return String @api private

# File lib/ashikawa-core/exceptions/client_error/authentication_failed.rb, line 19
def to_s
  'Status 401: Authentication failed'
end