Exception: Pincers::ContextError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_context, _msg) ⇒ ContextError

Returns a new instance of ContextError.



22
23
24
25
# File 'lib/pincers/errors.rb', line 22

def initialize(_context, _msg)
  super _msg
  @context = _context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



20
21
22
# File 'lib/pincers/errors.rb', line 20

def context
  @context
end