Exception: RR::Errors::RRError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rr/errors/rr_error.rb

Instance Attribute Summary collapse

Instance Attribute Details

#backtraceObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/rr/errors/rr_error.rb', line 7

def backtrace
  @backtrace ||= super
  original_backtrace = @backtrace
  return original_backtrace unless RR.trim_backtrace
  return original_backtrace unless original_backtrace.respond_to?(:each)
  new_backtrace = []
  original_backtrace.each do |line|
    new_backtrace << line unless line =~ BACKTRACE_IDENTIFIER
  end
  new_backtrace
end