|
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
-
error | The error code for the exception. This should be one of the DOFError codes. |
message | An 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
-
NULL | is returned if error does not represent a valid DOFError code. |
|