Error Types

Errors specific to the TitanQ SDK.

exception titanq.errors.ConnectionError

Error due to a connection issue with an external resource

exception titanq.errors.ConstraintAlreadySetError

A constraint has already been set

exception titanq.errors.ConstraintSizeError

The constraint size does not match

exception titanq.errors.ContradictoryExpressionError(message='The provided expression is contradictory and always evaluates to False, regardless of the variable values.', *args, **kwargs)

Exception raised when an expression is contradictory (always false).

This exception indicates that the provided expression is invalid as it represents an impossible condition.

exception titanq.errors.MaximumConstraintLimitError

The number of constraints is bigger than the number of variables

exception titanq.errors.MissingObjectiveError

Objective has not already been registered

exception titanq.errors.MissingTitanqApiKey

TitanQ Api key is missing

exception titanq.errors.MissingVariableError

Variable has not already been registered

exception titanq.errors.ObjectiveAlreadySetError

An objective has already been set

exception titanq.errors.OptimizeError

Error occur during optimization

exception titanq.errors.ServerError

Error returned by the server

exception titanq.errors.TautologicalExpressionError(message='The provided expression is tautological and always evaluates to True, regardless of the variable values.', *args, **kwargs)

Exception raised when an expression is tautological (always true).

This exception indicates that the provided expression is redundant and does not add meaningful constraints or information.

exception titanq.errors.TitanqError

Base TitanQ error

exception titanq.errors.VariableAlreadyExist

Variable with the same name already exist