Exception: CommandTower::Errors::Account::PushoverVerificationFailedError

Inherits:
CommandTower::Errors::ApplicationError show all
Defined in:
app/errors/command_tower/errors/account/pushover_verification_failed_error.rb

Instance Attribute Summary

Attributes inherited from CommandTower::Errors::ApplicationError

#cause, #details

Instance Method Summary collapse

Methods inherited from CommandTower::Errors::ApplicationError

#retryable?

Constructor Details

#initialize(code: "pushover_verification_failed", message: "Pushover verification failed", details: nil, cause: nil) ⇒ PushoverVerificationFailedError

Returns a new instance of PushoverVerificationFailedError.



7
8
9
10
11
# File 'app/errors/command_tower/errors/account/pushover_verification_failed_error.rb', line 7

def initialize(code: "pushover_verification_failed", message: "Pushover verification failed", details: nil, cause: nil)
  @code = code
  @message = message
  super(details:, cause:)
end

Instance Method Details

#codeObject



13
14
15
# File 'app/errors/command_tower/errors/account/pushover_verification_failed_error.rb', line 13

def code
  @code
end

#log_levelObject



21
22
23
# File 'app/errors/command_tower/errors/account/pushover_verification_failed_error.rb', line 21

def log_level
  :info
end

#messageObject



17
18
19
# File 'app/errors/command_tower/errors/account/pushover_verification_failed_error.rb', line 17

def message
  @message
end