Exception: X402::VerificationError

Inherits:
Error
  • Object
show all
Defined in:
lib/x402/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



9
10
11
# File 'lib/x402/errors.rb', line 9

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/x402/errors.rb', line 9

def status
  @status
end