Sha256: 3f64be8ced6aade723170c15b6d767f04860ec86874d54a981781892ff574048

Contents?: true

Size: 326 Bytes

Versions: 21

Compression:

Stored size: 326 Bytes

Contents

module Kernel

  # Pretty prints an exception/error object
  # usefull for helpfull debug messages
  #
  # Input:
  # The Exception/StandardError object
  #
  # Output:
  # the pretty printed string
  
  def pp_exception(ex)
    return %{#{ex.message}\n  #{ex.backtrace.join("\n  ")}\n  LOGGED FROM: #{caller[0]}}
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
facets-1.2.1 lib/facets/core/kernel/pp_exception.rb
facets-1.3.0 lib/facets/core/kernel/pp_exception.rb
facets-1.3.1 lib/facets/core/kernel/pp_exception.rb
facets-1.3.2 lib/facets/core/kernel/pp_exception.rb
facets-1.3.3 lib/facets/core/kernel/pp_exception.rb
facets-1.4.0 lib/facets/core/kernel/pp_exception.rb
facets-1.4.1 lib/facets/core/kernel/pp_exception.rb
facets-1.4.2 lib/facets/core/kernel/pp_exception.rb
facets-1.4.3 lib/facets/core/kernel/pp_exception.rb
facets-1.4.4 lib/facets/core/kernel/pp_exception.rb
facets-1.4.5 lib/facets/core/kernel/pp_exception.rb
facets-1.7.0 lib/facets/core/kernel/pp_exception.rb
facets-1.7.30 lib/facets/core/kernel/pp_exception.rb
facets-1.7.38 lib/facets/core/kernel/pp_exception.rb
facets-1.7.46 lib/facets/core/kernel/pp_exception.rb
facets-1.8.0 lib/facets/core/kernel/pp_exception.rb
facets-1.8.20 lib/facets/core/kernel/pp_exception.rb
facets-1.8.49 lib/facets/core/kernel/pp_exception.rb
facets-1.8.51 lib/facets/core/kernel/pp_exception.rb
facets-1.8.54 lib/facets/core/kernel/pp_exception.rb