Exceptions#

All exceptions thrown by the Scrutiny Python SDK inherits the common ScrutinySDKException.

The inheritance hierarchy goes as follows.

Exception hierarchy
class scrutiny.sdk.exceptions.ScrutinySDKException[source]#

Base class for all Scrutiny SDK exceptions


class scrutiny.sdk.exceptions.ConnectionError[source]#

Raised when a problem with the server communication occurs


class scrutiny.sdk.exceptions.InvalidValueError[source]#

Raised when trying to access a value that is unavailable


class scrutiny.sdk.exceptions.OperationFailure[source]#

Generic exception raised when a synchronous operation fails


class scrutiny.sdk.exceptions.TimeoutException[source]#

Raised when synchronous operations times out


class scrutiny.sdk.exceptions.NameNotFoundError[source]#

Raised when trying to reference an element by its name and the name is invalid or unknown


class scrutiny.sdk.exceptions.BadEnumError[source]#

Raised when trying access an enum value that does not exists


class scrutiny.sdk.exceptions.ApiError[source]#

Base class for all error related to the API


class scrutiny.sdk.exceptions.BadResponseError[source]#

Raised when the server API does not behave as expected. Rarely reaches the end user and often translate to an OperationFailure


class scrutiny.sdk.exceptions.ErrorResponseException[source]#

Raised when the server API actively reject a request. Rarely reaches the end user and often translate to an OperationFailure