module Erratum::Error::ClassMethods

Public Instance Methods

wrap(other) click to toggle source
# File lib/erratum/error.rb, line 13
def wrap(other)
  wrapped_error = new(message: "#{other.class.name}: #{other.message}")
  wrapped_error.set_backtrace(other.backtrace)
  wrapped_error
end