recordErrorInHandler method

Object? recordErrorInHandler([
  1. Object? error,
  2. StackTrace? stack
])
inherited

Implementation

Object? recordErrorInHandler([Object? error, StackTrace? stack]) {
  // Retrieved the currently recorded exception
  var e = _recErrorException;

  if (error == null) {
    // Once retrieved, empty this
    _recErrorException = null;
    _stackTrace = null;
  } else {
    //
    _recErrorException = error;
    _stackTrace = stack;
  }
  return e;
}