Natural Language Processing  0.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nlp_exception.h
1 
8 #ifndef NLP_EXCEPTION_H
9 #define NLP_EXCEPTION_H
10 #include <exception>
11 
12 using namespace std;
13 
14 namespace NLP
15 {
16  class unimplemented_exc: public exception
17  {
18  virtual const char* what() const throw()
19  {
20  return "Unimplemented error.";
21  }
22  };
23 
24  class invalid_sentence : public exception
25  {
26  virtual const char* what() const throw()
27  {
28  return "Invalid sentence type.";
29  }
30  };
31 
32 } /* NLP */
33 
34 
35 #endif /* !NLP_EXCEPTION_H */
Definition: nlp_exception.h:24
Definition: nlp_exception.h:16