Exception: CommandTower::Errors::Account::PhoneVerificationThrottledError

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

Instance Attribute Summary collapse

Attributes inherited from CommandTower::Errors::ApplicationError

#cause, #details

Instance Method Summary collapse

Methods inherited from CommandTower::Errors::ApplicationError

#log_level, #retryable?

Constructor Details

#initialize(resend_available_at: nil) ⇒ PhoneVerificationThrottledError

Returns a new instance of PhoneVerificationThrottledError.



9
10
11
12
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 9

def initialize(resend_available_at: nil)
  @resend_available_at = resend_available_at
  super()
end

Instance Attribute Details

#resend_available_atObject (readonly)

Returns the value of attribute resend_available_at.



7
8
9
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 7

def resend_available_at
  @resend_available_at
end

Instance Method Details

#codeObject



14
15
16
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 14

def code
  "phone_verification_throttled"
end

#messageObject



18
19
20
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 18

def message
  "Please wait before requesting another code"
end