UnImplementedResolverException class

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');
  }
}
Inheritance
Available extensions

Constructors

UnImplementedResolverException(Type type, String message, {Object? cause})
Exception thrown when an operation in the ExecutableResolver is not implemented or cannot be resolved at runtime.

Properties

cause Object?
The underlying cause of this exception, if any.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the error.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The associated stack trace.
finalinherited
type Type
The type that the operation was attempted on.
final

Methods

getCause() Object
The cause of this exception, if any.
inherited
getMessage() String
The message associated with this exception.
inherited
getStackTrace() StackTrace
The stack trace associated with this exception.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printStackTrace([bool useErrorPrint = false]) → void

Available on Error, provided by the ErrorExtensions extension

Prints the error along with its stack trace.
printStackTrace([StackTrace? stacktrace, bool useErrorPrint = false]) → void

Available on Exception, provided by the ExceptionExtensions extension

Prints the exception and optional StackTrace if available.
printStackTrace([bool useErrorPrint = false]) → void

Available on RuntimeException, provided by the RuntimeExceptionExtensions extension

Extension on RuntimeException to support pretty stack trace printing.
printStackTrace([bool useErrorPrint = false]) → void

Available on Throwable, provided by the ThrowableExtensions extension

Extension on Throwable to support printing stack traces in a unified way.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited