Exception: CommandTower::Clients::Errors::AuthenticationError

Inherits:
Errors::ApplicationError show all
Defined in:
app/services/command_tower/clients/errors/authentication_error.rb

Instance Attribute Summary

Attributes inherited from Errors::ApplicationError

#cause, #details

Instance Method Summary collapse

Methods inherited from Errors::ApplicationError

#retryable?

Constructor Details

#initialize(message: nil, details: nil, cause: nil) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



7
8
9
10
# File 'app/services/command_tower/clients/errors/authentication_error.rb', line 7

def initialize(message: nil, details: nil, cause: nil)
  @message = message
  super(details: details, cause: cause)
end

Instance Method Details

#codeObject



12
13
14
# File 'app/services/command_tower/clients/errors/authentication_error.rb', line 12

def code
  "authentication_error"
end

#log_levelObject



20
21
22
# File 'app/services/command_tower/clients/errors/authentication_error.rb', line 20

def log_level
  :warn
end

#messageObject



16
17
18
# File 'app/services/command_tower/clients/errors/authentication_error.rb', line 16

def message
  @message.presence || "Client authentication failed"
end