Scale Stack 0.3 Developer Documentation

scalestack::kernel::exception Class Reference

#include <exception.h>

Public Member Functions

 exception (const char *context, const char *message) throw ()
const char * what () const throw ()

Private Attributes

char _message [SCALESTACK_MAX_MESSAGE_SIZE]

Detailed Description

This class allows exceptions to be thrown with custom error messages without the possibility of throwing any exceptions itself.

Definition at line 40 of file exception.h.


Constructor & Destructor Documentation

scalestack::kernel::exception::exception ( const char *  context,
const char *  message 
) throw ()

This constructor formats the context and message into a static buffer.

Parameters:
[in] context Context where the exception occurred.
[in] message Message describing the exception.

Definition at line 35 of file exception.cc.


Member Function Documentation

const char * scalestack::kernel::exception::what (  )  const throw ()

Get the exception message describing what happened.

Returns:
Static buffer containing the message.

Definition at line 40 of file exception.cc.


Field Documentation

char scalestack::kernel::exception::_message[SCALESTACK_MAX_MESSAGE_SIZE] [private]

Definition at line 62 of file exception.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 17 13:10:22 2011 by  doxygen 1.6.3