Exception: RR::Errors::RRError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RR::Errors::RRError
- Defined in:
- lib/rr/errors/rr_error.rb
Direct Known Subclasses
DoubleDefinitions::DoubleDefinitionCreate::DoubleDefinitionCreateError, DoubleDefinitionError, DoubleNotFoundError, DoubleOrderError, SpyVerificationErrors::SpyVerificationError, SubjectDoesNotImplementMethodError, SubjectHasDifferentArityError, TimesCalledError
Instance Attribute Summary collapse
Instance Attribute Details
#backtrace ⇒ Object
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 |