Exception: Exception

Defined in:
lib/commons/ruby/exception.rb

Instance Method Summary collapse

Instance Method Details

#stack_trace_stringObject



36
37
38
39
40
41
42
43
44
45
# File 'lib/commons/ruby/exception.rb', line 36

def stack_trace_string
  trace = self.backtrace
  if trace == nil
    return 'no backtrace'
  elsif trace.kind_of?(String)
    return trace
  else
    trace.join(Commons::Lang::SystemUtils.line_separator)
  end
end