Function TRTSERVER_ErrorNew¶
Defined in File trtserver.h
Function Documentation¶
-
TRTSERVER_Error *
TRTSERVER_ErrorNew
(TRTSERVER_Error_Code code, const char *msg)¶ Create a new error object.
The caller takes ownership of the TRTSERVER_Error object and must call TRTSERVER_ErrorDelete to release the object.
- Return
A new TRTSERVER_Error object.
- Parameters
code
: The error code.msg
: The error message.