presage
0.9.1
|
#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 66 of file presageException.h.
|
inline |
Definition at line 68 of file presageException.h.
|
inlinevirtual |
Definition at line 75 of file presageException.h.
|
inlinevirtual |
Definition at line 85 of file presageException.h.
References m_code.
|
inlinevirtual |
Definition at line 80 of file presageException.h.
References m_details.
Referenced by PredictorRegistry::addPredictor(), and SmoothedNgramPredictor::learn().
|
private |
Definition at line 92 of file presageException.h.
Referenced by code().
|
private |
Definition at line 91 of file presageException.h.
Referenced by what().