Exception: PrivateCaptcha::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PrivateCaptcha::Error
- Defined in:
- lib/private_captcha/errors.rb
Overview
Error is the base class for Private Captcha errors
Direct Known Subclasses
EmptyAPIKeyError, EmptySolutionError, HTTPError, RetriableError, VerificationFailedError
Instance Attribute Summary collapse
-
#trace_id ⇒ Object
readonly
Returns the value of attribute trace_id.
Instance Method Summary collapse
-
#initialize(msg = nil, trace_id: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, trace_id: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/private_captcha/errors.rb', line 8 def initialize(msg = nil, trace_id: nil) @trace_id = trace_id super(msg) end |
Instance Attribute Details
#trace_id ⇒ Object (readonly)
Returns the value of attribute trace_id.
6 7 8 |
# File 'lib/private_captcha/errors.rb', line 6 def trace_id @trace_id end |