Exception: CommandTower::Errors::Account::PhoneVerificationThrottledError
- Inherits:
-
CommandTower::Errors::ApplicationError
- Object
- StandardError
- CommandTower::Errors::ApplicationError
- CommandTower::Errors::Account::PhoneVerificationThrottledError
- Defined in:
- app/errors/command_tower/errors/account/phone_verification_throttled_error.rb
Instance Attribute Summary collapse
-
#resend_available_at ⇒ Object
readonly
Returns the value of attribute resend_available_at.
Attributes inherited from CommandTower::Errors::ApplicationError
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(resend_available_at: nil) ⇒ PhoneVerificationThrottledError
constructor
A new instance of PhoneVerificationThrottledError.
- #message ⇒ Object
Methods inherited from CommandTower::Errors::ApplicationError
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_at ⇒ Object (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
#code ⇒ Object
14 15 16 |
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 14 def code "phone_verification_throttled" end |
#message ⇒ Object
18 19 20 |
# File 'app/errors/command_tower/errors/account/phone_verification_throttled_error.rb', line 18 def "Please wait before requesting another code" end |