Exception: PasskeysRails::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PasskeysRails::Error
- Defined in:
- app/models/passkeys_rails/error.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(message, hash = {}) ⇒ Error
constructor
A new instance of Error.
- #to_h ⇒ Object
Constructor Details
#initialize(message, hash = {}) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'app/models/passkeys_rails/error.rb', line 5 def initialize(, hash = {}) @hash = hash super() end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
3 4 5 |
# File 'app/models/passkeys_rails/error.rb', line 3 def hash @hash end |
Instance Method Details
#to_h ⇒ Object
10 11 12 |
# File 'app/models/passkeys_rails/error.rb', line 10 def to_h { error: hash.merge(context: ) } end |