Class DD_Exception: Exceptions that can be thrown by the DD system calls.
Class DD_Exception: Exceptions that can be thrown by the DD system calls. A DD exception consists of an error message, which is given by a static const char* variable. The errorcodes are enumerated and the array of error messages is sized to NUM_ERRORS+1 in order to handle an iCode which is invalid (i.e. > NUM_ERRORS).The typical use of the code is:
DD *my_dd; try { my_dd = pDDfactory->create_dd( dd_name, "w", dd_config_file ); } catch ( DD_Exception &ex ) { cout << "Exception raised while creating DD system " << dd_name << endl; ex.print(); delete &ex; exit(EXIT_FAILURE); }Note that the entire DD code can be compiled with -DDD_NOEXCEPTION, in which case no exceptions are present to allow backwards compatibility with older compilers such as IRIX 5.3.
Alphabetic index HTML hierarchy of classes or Java