UnexpectedError constructor

UnexpectedError(
  1. Object error,
  2. StackTrace stackTrace
)

Implementation

UnexpectedError(Object error, StackTrace stackTrace)
    : error = error.toString(),
      stackTrace = stackTrace.toString();