Exception: Clickwrap::VerificationFailed
- Defined in:
- lib/clickwrap/errors.rb
Overview
Raised by the bang verification methods. Always carries the same structured
result the non-bang Clickwrap.verify would have returned, so applications
never parse an English message to make an authorization decision.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(result) ⇒ VerificationFailed
constructor
A new instance of VerificationFailed.
Constructor Details
#initialize(result) ⇒ VerificationFailed
Returns a new instance of VerificationFailed.
128 129 130 131 |
# File 'lib/clickwrap/errors.rb', line 128 def initialize(result) @result = result super(result.) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
126 127 128 |
# File 'lib/clickwrap/errors.rb', line 126 def result @result end |
Instance Method Details
#error ⇒ Object
133 |
# File 'lib/clickwrap/errors.rb', line 133 def error = result.error |