Skip to content

kolena.errors

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.

DuplicateDatapointIdError(*args, duplicate_ids) #

Bases: InputValidationError

Exception when provided input contains multiple references to the same datapoint id values

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.

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