|
OrbbecSDK 2.5.5
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
Functions for handling errors, mainly used for obtaining error messages. More...
#include "ObTypes.h"Go to the source code of this file.
Macros | |
| #define | ob_error_status ob_error_get_status |
| #define | ob_error_message ob_error_get_message |
| #define | ob_error_function ob_error_get_function |
| #define | ob_error_args ob_error_get_args |
| #define | ob_error_exception_type ob_error_get_exception_type |
Functions | |
| 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_message (const ob_error *error) |
| Get the error message. | |
| OB_EXPORT const char * | ob_error_get_function (const ob_error *error) |
| Get the name of the API function that caused the error. | |
| OB_EXPORT const char * | ob_error_get_args (const ob_error *error) |
| Get the error parameters. | |
| 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. | |
Functions for handling errors, mainly used for obtaining error messages.
Definition in file Error.h.
| #define ob_error_status ob_error_get_status |
| #define ob_error_message ob_error_get_message |
| #define ob_error_function ob_error_get_function |
| #define ob_error_args ob_error_get_args |
| #define ob_error_exception_type ob_error_get_exception_type |
| 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.
| status | The error status. |
| message | The error message. |
| function | The name of the API function that caused the error. |
| args | The error parameters. |
| exception_type | The type of exception that caused the error. |
Referenced by ob::StreamProfileFactory::create().
Get the error status.
| [in] | error | The error object. |
Get the error message.
| [in] | error | The error object. |
Get the name of the API function that caused the error.
| [in] | error | The error object. |
Get the error parameters.
| [in] | error | The error object. |
| OB_EXPORT ob_exception_type ob_error_get_exception_type | ( | const ob_error * | error | ) |
Get the type of exception that caused the error.
| [in] | error | The error object. |
Delete the error object.
| [in] | error | The error object to delete, you should set the pointer to NULL after calling this function. |
Referenced by ob::Error::handle(), and ob::Error::~Error().