Sha256: ecb8a8734d81f2b771bd9502a4d00c81238bc7473f448b24a1daf849937d75ca

Contents?: true

Size: 200 Bytes

Versions: 1

Compression:

Stored size: 200 Bytes

Contents

module ContextualExceptions
  module ContextualError
    def with_context(message, e)
      new_e = new(message << ": #{e.message}")
      new_e.set_backtrace e.backtrace
      new_e
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contextual_exceptions-0.0.2 lib/contextual_exceptions/contextual_error.rb