Exceptions

exception lanyard.exception.LanyardError(message)[source]

Base exception for all errors with Lanyard client.

Parameters:

message (str) – Error message.

Return type:

None

exception lanyard.exception.KVInvalidError[source]

Exception thrown when the KV body value is not an object (dict)

Return type:

None

exception lanyard.exception.NoPermissionError[source]

Exception raised when a user does not have permission to perform the operation.

Return type:

None

exception lanyard.exception.KVValidationError[source]

An exception is thrown when the limits for keys or values in KV are violated.

Return type:

None

exception lanyard.exception.TokenRequiredError[source]

Exception for methods that require a token to be specified.

Return type:

None

exception lanyard.exception.UserNotMonitoredError[source]

Exception when the requested user is not monitored by the service

Return type:

None

exception lanyard.exception.UnknownAPIVersionError(version)[source]

Exception for unknown API version

Parameters:

version (int) – API version (default: 1).

Return type:

None