YOLOErrorHandler class
Centralized error handling utility for YOLO operations.
This class provides a unified way to handle PlatformExceptions and convert them to appropriate YOLO-specific exceptions.
Constructors
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(
dynamic e, String context) → YOLOException - Handles any exception with a custom context message.
-
handleGenericException(
dynamic e, {String? context}) → YOLOException - Handles generic exceptions and wraps them in appropriate YOLO exceptions.
-
handlePlatformException(
PlatformException e, {String? context}) → YOLOException - Handles PlatformExceptions and converts them to appropriate YOLO exceptions.