Python

Status

Status class and enum members in the unified Python API.

Enum: Status

Python · enumSince v0.10.0
StatusIntEnum
IntEnum for native operation statuses. Successful methods return their documented Python value, not Status.OK; failures raise MaelysDatalogError whose status can be compared with these members. A false membership answer is not an error status.
Members
OK0
Operation succeeded.
INVALID_ARGUMENT-1
Malformed argument.
INVALID_FIELD-2
Invalid field or typed value.
NOT_FOUND-3
Requested item or explanation symbol not found.
NOT_IMPLEMENTED-4
Operation not implemented.
UNSUPPORTED-5
Unsupported capability or operation.
TIMEOUT-6
Operation timed out.
IO-7
Input/output failure.
INTERNAL-8
Internal operation failure.
UNAUTHORIZED-9
Authentication required.
FORBIDDEN-10
Permission or manifest policy rejects the operation.
RATE_LIMITED-11
Rate limit reached.
PAYLOAD_TOO_LARGE-12
Content exceeds an engine bound.
INVALID_STATE-13
Resource is closed or its current lease prevents the operation.
STORAGE_TOO_SMALL-14
Supplied storage is insufficient.
Example
from maelys_datalog import Status

if error.status == Status.UNSUPPORTED:
    print("The requested native feature is unsupported")
The requested native feature is unsupported

Usage guides