About
All error types of the MAXON API are based on the maxon::ErrorInterface. This interface defines functions to set and get the information stored in the error object.
For creating new error types based on this interface see Error Types and Interface Basics.
Error Class
Basic information stored in an error object is accessed with:
The following data may or may not be set, depending on the error:
{
const maxon::Error
error =
res.GetError();
}
Definition: resultbase.h:766
Definition: memoryallocationbase.h:18
const Char * file
Definition: memoryallocationbase.h:20
Definition: string.h:1235
PyObject * error
Definition: codecs.h:206
const char * message
Definition: pyerrors.h:189
Py_UCS4 * res
Definition: unicodeobject.h:1113
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
static const ERROR_FAILED FAILED
Definition: resultbase.h:68
const char const char const char * file
Definition: object.h:439
Additionally, error objects provide these functions:
{
if (Action() == false)
{
}
}
return OK
Definition: apibase.h:2667
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
{
err.DiagOutput();
}
#define iferr(...)
Definition: errorbase.h:388
Further Reading