OOFILE | Downloads | Purchasing | Press | Services | Company Information | Soapbox | References | F.A.Q. | HOME

Creating your own error messages

You are able to create your own error messages using the function dbConnect::raise(). We pass an 'ostrstream' to it -> this is an output stream to which we can pass values and strings just like cout.
For eample:

	dbConnect::raise( ostrstream() 
	   << "Error: you have just deleted the hard drive"
	   << endl);
	cout << "Finished" << endl << flush;    

Raising error messages is tested in ooftst08.cpp.

 

Feature index

(c) Copyright A.D. Software 1994-2000 (All Rights Reserved).
Last Updated: 9th September 2001