OpenDOF Project
DOFException DOFErrorException_Create ( DOFError  error,
const char *  message 
)

Construct a DOFErrorException from a DOFError code and a string.

Resource Management:
This function allocates resources that must later be freed by calling DOFException_Destroy.
Parameters
errorThe error code for the exception. This should be one of the DOFError codes.
messageAn associated string for the exception. If NULL, the exception is created with the default string for the error code (see DOFError_GetString).
Returns
A new DOFErrorException. If the desired exception cannot be created, a DOFErrorException representing a DOFERROR_INSUFFICIENT_RESOURCES exception is returned in its place.
Exceptions
NULLis returned if error does not represent a valid DOFError code.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22