Exception: Exception

Defined in:
lib/abstractivator/exception_ext.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
5
6
7
8
9
10
11
# File 'lib/abstractivator/exception_ext.rb', line 2

def print_full_trace(io=STDOUT)
  io.puts "#{self.class}: #{message}"
  backtrace.each do |f|
    io.puts "  at #{f}"
  end
  if cause
    io.puts '--- Caused by ---'
    cause.print_full_trace(io)
  end
end