Updated on 2026-11-06 GMT+08:00

Exception Classes

When the SDK fails to call external services such as LakeFormation or OBS or during internal processing (such as type inference or UDF packaging), it throws the corresponding exception classes. You can quickly determine whether the issue is related to the service, storage, parameters, or types based on the exception class. All SDK exceptions are inherited from the base class AIDatalakeCatalogError.

Table 1 Exception classes

Exception Class

Description

Key Attribute

AIDatalakeCatalogError

Base class of all SDK exceptions.

-

LakeFormationAPIError

Failed to call the LakeFormation REST API.

status_code, function_name

OBSOperationError

Failed to upload or delete data to or from OBS.

obs_uri

TypeMappingError

The Python/LakeFormation/Aura/Arrow type cannot be mapped.

-

FunctionNotFoundError

The specified function is not found in LakeFormation.

function_name, database

FunctionAlreadyExistsError

A function with the same name already exists in LakeFormation.

function_name, database

SignatureInferenceError

Failed to infer the signature from the callable object.

callable_name

UDFPackagingError

Failed to package the UDF (into a ZIP file).

-

Parameter verification errors (such as invalid function names and out-of-bounds resource parameters) are directly thrown as ValueError and do not belong to the preceding SDK exception hierarchy.