Module: TestBench::Session::Controls::Exception::NoBacktraceLocation

Defined in:
lib/test_bench/session/controls/exception.rb

Class Method Summary collapse

Class Method Details

.exampleObject



78
79
80
81
82
83
84
85
86
87
# File 'lib/test_bench/session/controls/exception.rb', line 78

def self.example
  backtrace = Backtrace.example

  raise SomeException, Exception.exception_message, backtrace

rescue SomeException => exception
  return exception
else
  abort "Unreachable"
end