Function TRITONSERVER_ErrorNew

Function Documentation

TRITONSERVER_Error *TRITONSERVER_ErrorNew(TRITONSERVER_Error_Code code, const char *msg)

Create a new error object.

The caller takes ownership of the TRITONSERVER_Error object and must call TRITONSERVER_ErrorDelete to release the object.

Return

A new TRITONSERVER_Error object.

Parameters
  • code: The error code.

  • msg: The error message.