76#define ob_error_status ob_error_get_status
77#define ob_error_message ob_error_get_message
78#define ob_error_function ob_error_get_function
79#define ob_error_args ob_error_get_args
80#define ob_error_exception_type ob_error_get_exception_type
OB_EXPORT ob_exception_type ob_error_get_exception_type(const ob_error *error)
Get the type of exception that caused the error.
OB_EXPORT void ob_delete_error(ob_error *error)
Delete the error object.
OB_EXPORT const char * ob_error_get_message(const ob_error *error)
Get the error message.
OB_EXPORT ob_error * ob_create_error(ob_status status, const char *message, const char *function, const char *args, ob_exception_type exception_type)
Create a new error object.
OB_EXPORT ob_status ob_error_get_status(const ob_error *error)
Get the error status.
OB_EXPORT const char * ob_error_get_args(const ob_error *error)
Get the error parameters.
OB_EXPORT const char * ob_error_get_function(const ob_error *error)
Get the name of the API function that caused the error.
Provide structs commonly used in the SDK, enumerating constant definitions.
enum OBExceptionType ob_exception_type
The error class exposed by the SDK, users can get detailed error information according to the error.