UnImplementedResolverException constructor

UnImplementedResolverException(
  1. Type type,
  2. String message, {
  3. Object? cause,
})

Exception thrown when an operation in the ExecutableResolver is not implemented or cannot be resolved at runtime.

This exception is used to signal unsupported operations, typically due to the current execution mode (e.g., trying to use dart:mirrors in an AOT environment).

Example

final resolver = MyAOTResolver();
try {
  resolver.newInstance('MyClass');
} catch (e) {
  if (e is UnImplementedResolverException) {
    print('Operation not supported in AOT mode');
  }
}

Implementation

UnImplementedResolverException(this.type, super.message, {super.cause});