Exception: RubyBreaker::Errors::UserError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubybreaker/debug/error.rb

Overview

This class is a base class for any user errors. Unlike internal error, it should use a Context to inform the source of the error rather than a Position since user errors tend to generate over multiple points in the program.

Direct Known Subclasses

TypeError

Instance Method Summary collapse

Constructor Details

#initialize(msg, ctx = nil) ⇒ UserError

Returns a new instance of UserError.



44
45
46
47
# File 'lib/rubybreaker/debug/error.rb', line 44

def initialize(msg, ctx=nil)
  super(msg)
  @ctx = ctx
end