KoolbaseDataException class
Base class for errors surfaced by the Koolbase data layer (database
reads and writes). Every data error carries a human-readable message
and, when the server provides one, its stable code (e.g. not_found,
validation_error, unique_violation).
Catch this to handle any data-layer failure generically, or catch a specific subtype (KoolbaseConflictException, KoolbaseNotFoundException, …) to branch on the kind of failure. Something went wrong reading or writing records.
Sits under KoolbaseException with the other families, so an application can catch any SDK failure in one place when it wants to.
- Inheritance
-
- Object
- KoolbaseException
- KoolbaseDataException
- Implementers
Constructors
- KoolbaseDataException(String message, {String? code})
-
const
Properties
- code → String?
-
The server's stable error code, when it sent one. Prefer branching on the
exception type; this is for logging and for codes the SDK does not yet map.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, in words. From the server where it said something useful.
finalinherited
- 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