col::XCollision Class Reference

Exceptions for Collision detection module. More...

Inheritance diagram for col::XCollision:

Inheritance graph
[legend]
Collaboration diagram for col::XCollision:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XCollision (const char *format,...) throw ()
 Construct a collision detection exception from a format string.
 XCollision (const char *leader, const char *format,...) throw ()
 Convenience constructor for derived classes.
void print (FILE *file=stdout) const throw ()
 Print a collision detection exception.
void set (const char *leader, const char *format, va_list va) throw ()
 Meant for subclasses with printf-like constructors.

Protected Attributes

char m_what_msg [m_what_msg_size]

Static Protected Attributes

static const unsigned int m_what_msg_size = 1024

Detailed Description

Exceptions for Collision detection module.

Implementation:
I had to add my own message string, because std::runtime_error has only one constructor, and sometimes I can construct the message only in the body of the constructor. Does anybody know how I could've avoided that?


Constructor & Destructor Documentation

col::XCollision::XCollision ( const char *  format,
  ... 
) throw ()

Construct a collision detection exception from a format string.

Works like printf().


Member Function Documentation

void col::XCollision::set ( const char *  leader,
const char *  format,
va_list  va 
) throw ()

Meant for subclasses with printf-like constructors.

va_start() must have been done by subclass ctor! We will do va_end here.


The documentation for this class was generated from the following files:
Generated on Tue Oct 16 18:12:52 2007 for CollDet by  doxygen 1.5.2