KoolbaseNotFoundException class

Thrown when the requested record or collection does not exist — the server responds with 404 and code not_found / record_not_found / collection_not_found.

Inheritance

Constructors

KoolbaseNotFoundException([String message = 'The requested resource was not found', String code = 'not_found'])
code is carried rather than fixed: the server says which thing was missing — a record, a collection, a vector field — and an app reading code should get that answer, not the category. Catching the class still works for anyone who only cares that something was absent.
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited