Status (error) interface

Function

Obtains the error code in the returned object.

C Prototype

explicit Status(const Error &error)

Python Function

Status(error)

Parameters

Parameter

Mandatory/Optional

Description

Value

error

Mandatory

Error code

Error class object.

Usage Example

Construct the error information error by using the code enumeration, and construct the status object using the error information.

1
2
3
code = llm_manager_python.Code.OK
error = Error(code)
status = Status(error)