Dart API Referencedart:mirrorsMirroredError

MirroredError abstract class

When an error occurs during the mirrored execution of code, a MirroredError is thrown.

In general, there are three main classes of failure that can happen during mirrored execution of code in some isolate:

  • An exception is thrown but not caught. This is caught by the mirrors framework and a MirroredUncaughtExceptionError is created and thrown.

  • A compile-time error occurs, such as a syntax error. This is suppressed by the mirrors framework and a MirroredCompilationError is created and thrown.

  • A truly fatal error occurs, causing the isolate to be exited. If the reflector and reflectee share the same isolate, then they will both suffer. If the reflector and reflectee are in distinct isolates, then we hope to provide some information about the isolate death, but this has yet to be implemented.

TODO(turnidge): Specify the behavior for remote fatal errors.

abstract class MirroredError implements Exception {
}

Subclasses

MirroredCompilationError, MirroredUncaughtExceptionError

Implements

Exception