Exceptions.hpp File Reference

Header for Exceptions template. More...

#include <stdarg.h>
#include <stdexcept>
#include <exception>
#include <stdio.h>

Include dependency graph for Exceptions.hpp:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Compounds

class  ExceptionTemplate
 A template supporting vararg (printf-style) use of the standard STL exceptions. More...


Typedefs

typedef ExceptionTemplate<
std::exception > 
Error
 You can throw each of these, printf style.

typedef ExceptionTemplate<
std::logic_error > 
LogicError
typedef ExceptionTemplate<
std::invalid_argument > 
ArgError
typedef ExceptionTemplate<
std::runtime_error > 
RuntimeError


Detailed Description

Header for Exceptions template.

Author: Matt Loper

Revision
1.3
Date
2003/05/11 14:59:40

Definition in file Exceptions.hpp.


Typedef Documentation

typedef ExceptionTemplate< std::exception > Error
 

You can throw each of these, printf style.

For example:

if (bError) throw RuntimeError("Oh no! %d bugs.", 5);

Definition at line 45 of file Exceptions.hpp.


Generated on Mon May 26 11:19:38 2003 for CamChecker by doxygen1.3