Module: Exceptron::LocalHelpers

Defined in:
lib/exceptron/local_helpers.rb

Instance Method Summary collapse

Instance Method Details

#application_traceObject



3
4
5
# File 'lib/exceptron/local_helpers.rb', line 3

def application_trace
  clean_backtrace(exception, :silent)
end

#debug_hash(hash) ⇒ Object



15
16
17
# File 'lib/exceptron/local_helpers.rb', line 15

def debug_hash(hash)
  hash.map { |k, v| "#{k}: #{v.inspect}" }.sort.join("\n")
end

#framework_traceObject



7
8
9
# File 'lib/exceptron/local_helpers.rb', line 7

def framework_trace
  clean_backtrace(exception, :noise)
end

#full_traceObject



11
12
13
# File 'lib/exceptron/local_helpers.rb', line 11

def full_trace
  clean_backtrace(exception, :all)
end