module Ramda::ExceptionHandler
Exception Handlers
Public Class Methods
default(e, *)
click to toggle source
This handler follows a standard behavior.
# File lib/ramda/exception_handler.rb, line 18 def self.default(e, *) raise e, e.exception, e.backtrace end
with_narrow(e, method_name)
click to toggle source
This handler is useful for debug.
Output example:
compose -> map -> add -> ... original message ... with backtrace: ... original backtrace ...
# File lib/ramda/exception_handler.rb, line 12 def self.with_narrow(e, method_name) raise e, [method_name, e.exception].join(' -> '), e.backtrace end