DartLoadingException class

Exception thrown when Dart file loading fails.

This exception is thrown during the loading or parsing of Dart files when an error occurs, such as:

  • Invalid Dart syntax
  • Missing or incorrect import statements
  • File not found or unreadable

Typically used in reflection-based systems or runtime file loading processes like those in the JetLeaf framework.

Example

void loadDartFile(String path) {
  if (!File(path).existsSync()) {
    throw DartLoadingException('File not found: $path');
  }
  // ...parse or load logic
}
Inheritance
Implemented types

Constructors

DartLoadingException(String message)
Exception thrown when Dart file loading fails.

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

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
toString() String
A string representation of this object.
inherited

Operators

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