Syntax
Error *ErrorNew( void );
Return value
The new Error object. Release it with ErrorFree().
Description
Include xdev-wtui-classes.h. An Error object holds the information about a runtime error: what failed, in which subsystem, how severe it is and how the program can recover. It has no methods, only instance variables, each read with `ErrorGet...()` and set with `ErrorSet...()`.
The new object has args NIL, canDefault, canRetry and canSubstitute F, cargo NULL, description, filename, operation and subSystem "", genCode, osCode, subCode and tries 0, and severity ES_ERROR. The constants of severity (`ES_...`) and of genCode (`EG_...`) are in xdev-wtui-error.h, which xdev-wtui-classes.h includes.