ErrorCodeException class
The ErrorCodeException class represents an exception with an error code.
This class implements the Exception interface.
- Implemented types
Constructors
- ErrorCodeException({required String message, Object? code})
-
Creates a new instance of the ErrorCodeException class.
const
Properties
- code → Object?
-
The error code associated with the exception (optional).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message associated with the exception.
final
- 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 -
Returns a string representation of the ErrorCodeException instance.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited