Dart API Referencedart:mirrorsMirroredCompilationError

MirroredCompilationError class

When a compile-time error occurs during the mirrored execution of code, a MirroredCompilationError is thrown.

This exception includes the compile-time error message that would have been displayed to the user, if the function had not been invoked via mirror.

class MirroredCompilationError extends MirroredError {
  MirroredCompilationError(this.message) {}

  final String message;

  String toString() {
    return "Compile-time error during mirrored execution: <$message>";
  }
}

Extends

MirroredError > MirroredCompilationError

Constructors

new MirroredCompilationError(String message) #

MirroredCompilationError(this.message) {}

Properties

final String message #

final String message;

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() {
  return "Compile-time error during mirrored execution: <$message>";
}