#include <Exceptions.h>
Inheritance diagram for rebecca::impl::InternalProgrammerErrorException:
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. |
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
|
Default Empty virtual destructor.
|
|
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.
|