ImageScopeError class
A custom error class to handle image scope-related errors.
This class is used to represent errors that occur in the image scope feature. It provides detailed error information including a message, context, and an optional suggested solution.
Constructor Parameters:
- message: A required string that describes the error message.
- context: An optional string that provides additional context about the error.
- solution: An optional string that suggests a solution for resolving the error.
Example:
throw ImageScopeError(
message: "Mismatch between image count and description count.",
context: "Description & Image Mismatch",
solution: "Ensure that the number of descriptions matches the number of images.",
);
Constructors
- ImageScopeError({required String message, String? context, String? solution})
Properties
- context → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- solution → String?
-
final
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited