Error
class. The Error
class provides four static methods, summarized in table
3-1. From within a star definition, it is not necessary to explicitly include the Error.h
header file. A typical use of the class is shown below:
Error::abortRun
" is the way
static methods are invoked in C++ without having a pointer to an instance of the Error
class. The first argument tells the error class which object is flagging the error; this is strongly recommended. The name of the object will be printed along with the error message. Note that the abortRun
call does not cause an immediate halt. It simply marks a flag that the scheduler must test for.