Exception: SecondFactor::BadChallenge
- Inherits:
-
StandardError
- Object
- StandardError
- SecondFactor::BadChallenge
- Defined in:
- lib/second_factor/bad_challenge.rb
Instance Attribute Summary collapse
-
#error_translation_key ⇒ Object
readonly
Returns the value of attribute error_translation_key.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(error_translation_key, status_code:) ⇒ BadChallenge
constructor
A new instance of BadChallenge.
Constructor Details
#initialize(error_translation_key, status_code:) ⇒ BadChallenge
Returns a new instance of BadChallenge.
6 7 8 9 |
# File 'lib/second_factor/bad_challenge.rb', line 6 def initialize(error_translation_key, status_code:) @error_translation_key = error_translation_key @status_code = status_code end |
Instance Attribute Details
#error_translation_key ⇒ Object (readonly)
Returns the value of attribute error_translation_key.
4 5 6 |
# File 'lib/second_factor/bad_challenge.rb', line 4 def error_translation_key @error_translation_key end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/second_factor/bad_challenge.rb', line 4 def status_code @status_code end |