CliConfigException class
Exception thrown when configuration operations fail
This exception provides detailed information about configuration errors, including the specific context where the error occurred.
Example usage:
try {
config.loadFromFile('invalid.json');
} catch (e) {
if (e is CliConfigException) {
print('Config error: ${e.message}');
print('Context: ${e.context}');
}
}
- Implemented types
Constructors
- CliConfigException(String message, [String? context])
-
Creates a new configuration exception
const
Properties
- context → String?
-
Optional context information about where the error occurred
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message describing what went wrong
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 -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited