reformatError method

Exception reformatError(
  1. Exception e, [
  2. StackTrace? stack
])

reformat error

Implementation

Exception reformatError(Exception e, [StackTrace? stack]) {
  return Exception(e.toString().substring(10) +
      'at ' +
      toString() +
      (stack != null ? stack.toString() : ''));
}