Exception: X402::VerificationError
- Defined in:
- lib/x402/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(reason, status: 400) ⇒ VerificationError
constructor
A new instance of VerificationError.
Constructor Details
#initialize(reason, status: 400) ⇒ VerificationError
Returns a new instance of VerificationError.
11 12 13 14 15 |
# File 'lib/x402/errors.rb', line 11 def initialize(reason, status: 400) @reason = reason @status = status super(reason) end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
9 10 11 |
# File 'lib/x402/errors.rb', line 9 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/x402/errors.rb', line 9 def status @status end |