Dart API Referencedart:mirrorsMirroredUncaughtExceptionError

MirroredUncaughtExceptionError class

When an uncaught exception occurs during the mirrored execution of code, a MirroredUncaughtExceptionError is thrown.

This exception contains a mirror on the original exception object. It also contains an object which can be used to recover the stacktrace.

class MirroredUncaughtExceptionError extends MirroredError {
  MirroredUncaughtExceptionError(this.exception_mirror,
                                 this.exception_string,
                                 this.stacktrace) {}

  /** A mirror on the exception object. */
  final InstanceMirror exception_mirror;

  /** The result of toString() for the exception object. */
  final String exception_string;

  /** A stacktrace object for the uncaught exception. */
  final Object stacktrace;

  String toString() {
    return
        "Uncaught exception during mirrored execution: <${exception_string}>";
  }
}

Extends

MirroredError > MirroredUncaughtExceptionError

Constructors

new MirroredUncaughtExceptionError(InstanceMirror exception_mirror, String exception_string, Object stacktrace) #

MirroredUncaughtExceptionError(this.exception_mirror,
                               this.exception_string,
                               this.stacktrace) {}

Properties

final InstanceMirror exception_mirror #

A mirror on the exception object.

final InstanceMirror exception_mirror;

final String exception_string #

The result of toString() for the exception object.

final String exception_string;

final Object stacktrace #

A stacktrace object for the uncaught exception.

final Object stacktrace;

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() {
  return
      "Uncaught exception during mirrored execution: <${exception_string}>";
}