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
SFINAEHelper< Error, RESULT_TYPE >::type GetError() const
Definition: resultbase.h:1032
Definition: memoryallocationbase.h:18
const Char * file
Definition: memoryallocationbase.h:20
Definition: string.h:1226
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
static const ERROR_FAILED FAILED
Definition: resultbase.h:68
Additionally, error objects provide these functions:
{
if (Action() == false)
{
}
}
return OK
Definition: apibase.h:2620
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
{
err.DiagOutput();
}
#define iferr(...)
Definition: errorbase.h:388
Further Reading