JAULA exceptions

All the JAULA specific operations are performed in a try block like this:

try
{
	jaula specific operations
}
catch(JAULA::Exception ex)
{
	print "jaula exception raised";
}

This is because all the methods from the library that deal with external data may eventually fail and, this failure is signalled by raising an exception.

All the exceptions that may be launched by the JAULA library are derived from the JAULA::Exception base class. This base class has an insertion operator << defined so that any exception can be human readable by sending it to a stream like in the std::cerr << std::endl << ex << std::endl; sentence.


(c) 2007 Kombo Morongo.

Unless otherwise stated for scpecific contents of this site, permission is granted to copy, distribute and/or modify the contents of this site under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation. A copy of the license is included in the section entitled "GNU Free Documentation License".

Powered by Drupal - Modified by Danger4k