MinixErrorHandler class

Centralized error handling utility for the Minix package.

Constructors

MinixErrorHandler.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

handleError(Object error, StackTrace stackTrace, {ErrorCallback? customHandler, String? context}) → void
Handle an error with consistent logging and optional custom handling.
safeExecute<T>(T function(), {ErrorCallback? onError, String? context}) → T?
Safely execute a function with error handling.
safeExecuteAsync<T>(Future<T> function(), {ErrorCallback? onError, String? context}) Future<T?>
Safely execute an async function with error handling.
setDebugMode(bool enabled) → void
Enable or disable debug mode for detailed error logging.
setGlobalErrorHandler(ErrorCallback? handler) → void
Set a global error handler for all Minix errors.