Exception: CommandTower::Errors::Auth::PasswordRecoveryIpRateLimitError
- Inherits:
-
CommandTower::Errors::ApplicationError
- Object
- StandardError
- CommandTower::Errors::ApplicationError
- CommandTower::Errors::Auth::PasswordRecoveryIpRateLimitError
- Defined in:
- app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb
Instance Attribute Summary
Attributes inherited from CommandTower::Errors::ApplicationError
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(retry_after_seconds: nil) ⇒ PasswordRecoveryIpRateLimitError
constructor
A new instance of PasswordRecoveryIpRateLimitError.
- #log_level ⇒ Object
- #message ⇒ Object
Methods inherited from CommandTower::Errors::ApplicationError
Constructor Details
#initialize(retry_after_seconds: nil) ⇒ PasswordRecoveryIpRateLimitError
Returns a new instance of PasswordRecoveryIpRateLimitError.
7 8 9 |
# File 'app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb', line 7 def initialize(retry_after_seconds: nil) super(details: retry_after_seconds ? { retry_after_seconds: retry_after_seconds } : nil) end |
Instance Method Details
#code ⇒ Object
11 12 13 |
# File 'app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb', line 11 def code "password_recovery_ip_rate_limited" end |
#log_level ⇒ Object
19 20 21 |
# File 'app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb', line 19 def log_level :warn end |
#message ⇒ Object
15 16 17 |
# File 'app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb', line 15 def "Too many password recovery requests from this network" end |