Thus, the standard return codes are:
enum DDS_ReturnCode_t |
Type for return codes.
Errors are modeled as operation return codes of this type.
DDS_RETCODE_OK | Successful return. |
DDS_RETCODE_ERROR | Generic, unspecified error. |
DDS_RETCODE_UNSUPPORTED | Unsupported operation. Can only returned by operations that are unsupported. |
DDS_RETCODE_BAD_PARAMETER |
Illegal parameter value.
The value of the parameter that is passed in has llegal value. Things that falls into this category includes NULL parameters and parameter values that are out of range. |
DDS_RETCODE_PRECONDITION_NOT_MET |
A pre-condition for the operation was not met.
The system is not in the expected state when the function is called, or the parameter itself is not in the expected state when the function is called. |
DDS_RETCODE_OUT_OF_RESOURCES | RTI Connext ran out of the resources needed to complete the operation. |
DDS_RETCODE_NOT_ENABLED | Operation invoked on a DDSEntity that is not yet enabled. |
DDS_RETCODE_IMMUTABLE_POLICY | Application attempted to modify an immutable QoS policy. |
DDS_RETCODE_INCONSISTENT_POLICY | Application specified a set of QoS policies that are not consistent with each other. |
DDS_RETCODE_ALREADY_DELETED | The object target of this operation has already been deleted. |
DDS_RETCODE_TIMEOUT | The operation timed out. |
DDS_RETCODE_NO_DATA | Indicates a transient situation where the operation did not return any data but there is no inherent error. |
DDS_RETCODE_ILLEGAL_OPERATION |
The operation was called under improper circumstances.
An operation was invoked on an inappropriate object or at an inappropriate time. This return code is similar to DDS_RETCODE_PRECONDITION_NOT_MET, except that there is no precondition that could be changed to make the operation succeed. |