Exception: PrivateCaptcha::VerificationFailedError

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

Overview

VerificationFailedError is raised when verification fails after all retry attempts

Instance Attribute Summary collapse

Attributes inherited from Error

#trace_id

Instance Method Summary collapse

Constructor Details

#initialize(message, attempts, trace_id: nil) ⇒ VerificationFailedError

Returns a new instance of VerificationFailedError.



57
58
59
60
# File 'lib/private_captcha/errors.rb', line 57

def initialize(message, attempts, trace_id: nil)
  @attempts = attempts
  super(message, trace_id: trace_id)
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



55
56
57
# File 'lib/private_captcha/errors.rb', line 55

def attempts
  @attempts
end