HP Integrity NonStop J-Series User Manual
Page 255
Advertising

void myOwnErrorHandler(const RWxmsg& error){
cout << "myOwnErrorHandler(" << error.why() << ")" << endl;
}
int main(){
rwSetErrHandler(myOwnErrorHandler); // Comment out this line
// to get the default error handler.
RWTHROW( RWExternalErr(RWMessage( RWCORE_GENERIC, 12345, "Howdy!") ));
cout << "Done." << endl;
return 0;
}
#else //RW_NO_EXCEPTIONS
#error This example only for compilers without exception handling
#endif
Advertising
This manual is related to the following products: