WcBaseError class
A base class for representing errors within the application.
This class provides a structured way to handle and report errors, including a human-readable message, an optional error code, title, detailed description, error type, and the layer where the error originated.
Constructors
- WcBaseError({required String message, String? code, String? title, String? description, String? type, String? layer})
- Creates a new WcBaseError.
Properties
- code → String?
-
An optional error code, typically a string, for programmatic handling.
final
- description → String?
-
An optional detailed description of the error.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layer → String?
-
An optional indication of the layer (e.g., presentation, data, domain)
where the error occurred.
final
- message → String
-
A short, human-readable message describing the error.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
An optional title for the error, often displayed to the user.
final
- type → String?
-
An optional type or category of the error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the error, primarily the message.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited