rebecca::impl::InternalProgrammerErrorException Class Reference

This exception occurs because of a programming error inside of RebeccaAIML its self. More...

#include <Exceptions.h>

Inheritance diagram for rebecca::impl::InternalProgrammerErrorException:

rebecca::impl::Exception List of all members.

Public Member Functions

virtual const char * what () const throw ()
 Get the message or jist of what occurred when the exception was thrown.
virtual ~InternalProgrammerErrorException ()
 Default Empty virtual destructor.

Detailed Description

This exception occurs because of a programming error inside of RebeccaAIML its self.

Rebecca has a series of internal tests which check for corrupted programming as the result of the programmer making mistakes or assumptions which turn out to not be true. When the mistake is grave enough to warrent the termination of the program, this exception is thrown.

Although none of the public interfaces can explicitly throw this exception it is useful to expose it publicly.

If you are getting a Exception which you suspect is a InternalProgrammerErrorException try casting to it. You should use a dynamic_cast for the cast. If the cast succeeds, you know there is a serious bug inside of RebeccaAIML that needs to be reported. Take the message from the Exception::what() and file a bug report.

Also, without casting, you can recognize this exception from its Exception::what() output. The format of the Exception::what() will be:

[ (some Method signature) ] message about the method siganture.

Example: [String Condition::getString()] Condition block code is corrupted


Constructor & Destructor Documentation

virtual rebecca::impl::InternalProgrammerErrorException::~InternalProgrammerErrorException  )  [inline, virtual]
 

Default Empty virtual destructor.


Member Function Documentation

virtual const char* rebecca::impl::Exception::what  )  const throw () [inline, virtual, inherited]
 

Get the message or jist of what occurred when the exception was thrown.

By default, if a sub class does not override this method and throw a custom message, this will return "unknown exception" message.

Returns:
Will return the message or jist of what occured when the exception was thrown.
Exceptions:
Will not throw any


The documentation for this class was generated from the following file:
Generated on Wed Oct 12 23:40:34 2005 for RebeccaAIML by  doxygen 1.4.5