Exception: Rubylog::RubylogError
- Defined in:
- lib/rubylog/errors.rb
Direct Known Subclasses
ExistenceError, InstantiationError, InvalidStateError, SyntaxError
Instance Method Summary collapse
-
#initialize(*args) ⇒ RubylogError
constructor
A new instance of RubylogError.
- #remove_internal_lines ⇒ Object
Constructor Details
#initialize(*args) ⇒ RubylogError
Returns a new instance of RubylogError.
4 5 6 7 8 |
# File 'lib/rubylog/errors.rb', line 4 def initialize *args super remove_internal_lines end |
Instance Method Details
#remove_internal_lines ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rubylog/errors.rb', line 10 def remove_internal_lines internal_dir = File.dirname(__FILE__) or return return unless backtrace index = backtrace.index{|l| not l.start_with?(internal_dir) } or return set_backtrace backtrace[index..-1] end |