status + errors
status + errors (rlmesh.h).
Experimental
#include <rlmesh.h>Functions
- rlmesh_last_error_message()ExperimentalMost recent failing call's message on THIS thread (valid until the next RLMesh call on this thread; NULL if none).
- rlmesh_last_error_is_recoverable()ExperimentalMost recent failing call's message on THIS thread (valid until the next RLMesh call on this thread; NULL if none).
- rlmesh_last_error_status()ExperimentalThe status that same call recorded — RLMESH_OK when none is.
- rlmesh_last_error_class()ExperimentalThe exact class that same call recorded; RLMESH_ERROR_CLASS_INVALID when none is.
- rlmesh_last_error_code()ExperimentalThe last error's code: writes the wire number of an RLMeshErrorCode (an environment class) or an RLMeshModelErrorCode (the model class) to
*outand returns true; returns false with*outuntouched for any other class. rlmesh_last_error_code_str() is the code's text ("BUSY"), or NULL with no code; valid until the next RLMesh call on this thread. - rlmesh_last_error_code_str()ExperimentalThe last error's code: writes the wire number of an RLMeshErrorCode (an environment class) or an RLMeshModelErrorCode (the model class) to
*outand returns true; returns false with*outuntouched for any other class. rlmesh_last_error_code_str() is the code's text ("BUSY"), or NULL with no code; valid until the next RLMesh call on this thread. - rlmesh_error_code_str()ExperimentalStatic text of a code ("INVALID_ACTION"), or NULL for an unknown value.
- rlmesh_model_error_code_str()ExperimentalStatic text of a code ("INVALID_ACTION"), or NULL for an unknown value.
- rlmesh_error_class_name()ExperimentalThe name of a class ("ConnectionError"), static; NULL for INVALID or an unknown value. rlmesh_error_class_is_subclass tests class inheritance: it is reflexive and transitive over the class hierarchy.
- rlmesh_error_class_is_subclass()ExperimentalThe name of a class ("ConnectionError"), static; NULL for INVALID or an unknown value. rlmesh_error_class_is_subclass tests class inheritance: it is reflexive and transitive over the class hierarchy.
Enums
- RLMeshStatusExperimentalEach nonzero status identifies an error class; a class without a status of its own (RECOVERABLE_ENVIRONMENT_EXCEPTION, ADAPTER_RESOLUTION_ERROR) returns its parent's, and rlmesh_last_error_class() reports the exact class.
- RLMeshErrorClassExperimentalThe exact class of an error.
- RLMeshErrorCodeExperimentalAn environment error's code (the wire numbers).
- RLMeshModelErrorCodeExperimentalA model error's code (the wire numbers).