Exception: PrivateCaptcha::Error

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

Overview

Error is the base class for Private Captcha errors

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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