RuntimeD4rtException class

Custom exception for runtime errors during interpretation.

This exception is thrown when the interpreter encounters an error during code execution, such as accessing undefined variables, calling non-existent methods, or type mismatches.

Inheritance
Implementers

Constructors

RuntimeD4rtException(String message, {Object? originalException})
Creates a new runtime error with the given message. When originalException is supplied, the wrapped native exception stays catchable by type.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The error message.
finalinherited
originalException Object?
When this runtime error wraps a native exception thrown from a bridged adapter (method, static method, getter, setter, operator, constructor), the original exception object is preserved here. This lets a typed on NativeType / bare catch clause in interpreted code dispatch against the real exception type rather than this RuntimeError wrapper. (OPEN B.5 — U13/U24.)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackedStackTrace StackTrace?
Stack trace captured by ErrorReporter when tracking is enabled.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke() bool
Revokes this error from the ErrorReporter.
inherited
toString() String
A string representation of this object.
override

Operators

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