KoolbaseUnauthenticatedException class
The server would not accept the caller's credentials.
Raised by any surface — a query, an upload, a Function invoke — because a session stops working for the whole SDK at once, not one subsystem at a time.
Named for what the server actually reports. A 401 covers an expired session, a revoked key, a malformed header, and no credentials at all, and the server does not distinguish them: calling this "session expired" would claim a precision that does not exist, and an app that signed a user out on a revoked API key would be acting on it.
When the SDK holds a session it clears it before throwing, so by the time an application catches this the user is already signed out and routing to login is safe.
- Inheritance
-
- Object
- KoolbaseException
- KoolbaseUnauthenticatedException
- Implementers
Constructors
- KoolbaseUnauthenticatedException(String message, {String? code = 'unauthenticated'})
-
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