presage
0.9.2~beta
|
#include <presageException.h>
Public Member Functions | |
PresageException (presage_error_code_t code, const std::string &msg) throw () | |
virtual | ~PresageException () throw () |
virtual const char * | what () const throw () |
virtual const presage_error_code_t | code () const throw () |
Private Attributes | |
std::string | m_details |
presage_error_code_t | m_code |
When thrown, provides information about an error that has occurred within presage.
If an error occurs within presage, an exception is thrown, and this is the object that encapsulates the details of the problem.
Application using presage should always ensure that exceptions are caught by enclosing all presage methods within a try{} catch(PresageException& e) {} block.
Definition at line 67 of file presageException.h.
|
inline |
Definition at line 69 of file presageException.h.
|
inlinevirtual |
Definition at line 76 of file presageException.h.
|
inlinevirtual |
Definition at line 86 of file presageException.h.
References m_code.
|
inlinevirtual |
Definition at line 81 of file presageException.h.
References m_details.
Referenced by PredictorRegistry::addPredictor(), and SmoothedNgramPredictor::learn().
|
private |
Definition at line 93 of file presageException.h.
Referenced by code().
|
private |
Definition at line 92 of file presageException.h.
Referenced by what().