rlmesh_callback_set_error_class
Set this call's error as an exact class, such as ValueError or TypeError: in process the failing call reports that class, its status and message; across the wire the peer sees an environment or model failure. An environment or model class carries code INTERNAL and is recoverable only as RLMESH_ERROR_CLASS_RECOVERABLE_ENVIRONMENT_EXCEPTION (a recoverable model failure uses rlmesh_callback_set_error). INVALID or an unknown value records RLMESH_ERROR_CLASS_RLMESH_EXCEPTION. The last call before the callback returns wins.
void rlmesh_callback_set_error_class(
RLMeshErrorClass error_class,
const char* message
)