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.
RSS Feeds