Python
Status
Status class and enum members in the unified Python API.Enum: Status
Python · enumSince v0.10.0
StatusIntEnumIntEnum 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.
from maelys_datalog import Status
if error.status == Status.UNSUPPORTED:
print("The requested native feature is unsupported")The requested native feature is unsupported