Skip to content

kolena.errors

Legacy Warning

Content in this section reflects outdated practices or deprecated features. It's recommended to avoid using these in new developments.

While existing implementations using these features will continue to receive support, we strongly advise adopting the latest standards and tools for new projects to ensure optimal performance and compatibility. For more information and up-to-date practices, please refer to our newest documentation at docs.kolena.io.

Reference for various exceptions raised from kolena. All custom exceptions extend the base KolenaError.

KolenaError #

Bases: Exception

Base error for all Kolena errors to extend. Allows consumers to catch Kolena specific errors.

InputValidationError #

Bases: ValueError, KolenaError

Exception indicating that provided input data failed validation.

IncorrectUsageError #

Bases: RuntimeError, KolenaError

Exception indicating that the user performed a disallowed action with the client.

InvalidTokenError #

Bases: ValueError, KolenaError

Exception indicating that provided token value was invalid.

InvalidClientStateError #

Bases: RuntimeError, KolenaError

Exception indicating that client state was invalid.

MissingTokenError #

Bases: KeyError, KolenaError

Exception indicating that the client could not locate an API token.

UninitializedError #

Bases: InvalidClientStateError

Exception indicating that the client has not been properly initialized before usage.

DirectInstantiationError #

Bases: RuntimeError, KolenaError

Exception indicating that the default constructor was used for a class that does not support direct instantiation. Available static constructors should be used when this exception is encountered.

FrozenObjectError #

Bases: RuntimeError, KolenaError

Exception indicating that the user attempted to modify a frozen object.

UnauthenticatedError #

Bases: HTTPError, KolenaError

Exception indicating unauthenticated usage of the client.

RemoteError #

Bases: HTTPError, KolenaError

Exception indicating that a remote error occurred in communications between the Kolena client and server.

CustomMetricsException #

Bases: KolenaError

Exception indicating that there's an error when computing custom metrics.

WorkflowMismatchError #

Bases: KolenaError

Exception indicating a workflow mismatch.

NotFoundError #

Bases: RemoteError

Exception indicating an entity is not found

NameConflictError #

Bases: RemoteError

Exception indicating the name of an entity is conflict