Skip to main content

err_handler

Logs GDAL error messages by capturing the error class, error number, and message, then routing them to the logger at the error level.

def err_handler(
error_class: int,
error_number: int,
message: string
) - > null

Logs GDAL-specific errors to the application logger using the provided error classification and message details.

Parameters

NameTypeDescription
error_classintThe severity level or category of the GDAL error (e.g., CE_Failure, CE_Fatal).
error_numberintThe specific error code identifier returned by the GDAL library.
messagestringThe descriptive error text explaining the cause of the failure.

Returns

TypeDescription
nullNothing is returned; the function performs a logging side effect.