Module: Trailblazer::Developer::Wtf::Exception
- Defined in:
- lib/trailblazer/developer/wtf.rb
Class Method Summary collapse
Class Method Details
.find_exception_source(stack, exception) ⇒ Object
70 71 72 73 74 |
# File 'lib/trailblazer/developer/wtf.rb', line 70 def self.find_exception_source(stack, exception) # in 99%, exception_source is a {Snapshot::Before}. exception_source = stack.to_a.last # DISCUSS: in most cases, this is where the problem has happened. # However, what if an error happens in, say, an input filter? TODO: test this end |