Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

noexceptions.h File Reference

Declares interface that allows exceptions to be optional. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  mysqlpp


Detailed Description

Declares interface that allows exceptions to be optional.

A class may inherit from OptionalExceptions, which will add to it a mechanism by which a user can tell objects of that class to suppress exceptions. (They are enabled by default.) This module also declares a NoExceptions class, objects of which take a reference to any class derived from OptionalExceptions. The NoExceptions constructor calls the method that disables exceptions, and the destructor reverts them to the previous state. One uses the NoExceptions object within a scope to suppress exceptions in that block, without having to worry about reverting the setting when the block exits.


Generated on Wed Jul 11 15:34:50 2007 for MySQL++ by doxygen 1.3.5