Skip to main content

LiumNotFoundError

from lium.sdk import LiumNotFoundError

Defined in lium.sdk.exceptions.

Resource not found (404).

LiumNotFoundError(
message: str = '',
*,
code: str | None = None,
hint: str | None = None,
request_id: str | None = None
)

Catching it​

LiumNotFoundError subclasses LiumError → Exception, so a handler for any of those also catches it.

from lium.sdk import LiumNotFoundError

try:
... # any SDK call
except LiumNotFoundError as e:
print(e, e.code, e.hint, e.request_id)
FieldMeaning
codemachine-readable error code from the API, when it sent one
hintwhat to try next, when the API suggested something
request_idthe API request id; quote it when you contact support