class Minitest::UnexpectedError

def backtrace # :nodoc:

:nodoc:
def backtrace # :nodoc:
  self.error.backtrace
end

def initialize error # :nodoc:

:nodoc:
def initialize error # :nodoc:
  super "Unexpected exception"
  self.error = error
end

def message # :nodoc:

:nodoc:
def message # :nodoc:
  bt = Minitest.filter_backtrace(self.backtrace).join "\n    "
  "#{self.error.class}: #{self.error.message}\n    #{bt}"
end

def result_label # :nodoc:

:nodoc:
def result_label # :nodoc:
  "Error"
end