Exception: RubyBreaker::Errors::UserError
- Inherits:
-
Exception
- Object
- Exception
- RubyBreaker::Errors::UserError
- 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
Instance Method Summary collapse
-
#initialize(msg, ctx = nil) ⇒ UserError
constructor
A new instance of UserError.
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 |