anfo  1.0
Exception.h
Go to the documentation of this file.
1 #ifndef _ANFO_EXCEPTION_
2 #define _ANFO_EXCEPTION_
3 
4 #include <iostream>
5 #include <fstream>
6 #include <string>
7 #include <list>
8 
10 
15 namespace anfo
16 {
18 
22  class Exception
23  {
24  private:
25  unsigned int id; // The id, what an error it is
26  std::string desc; // A short error description
27  public:
28  enum
29  {
30  ID_NOT_ANFO = 1, // The File is not an anfo-File
31  ID_VALUE_ERROR, // VALUES-Tag is at wrong position
32  ID_INVALID_TYPE, // The Season-Type is invalid
33  ID_ANIME_MARK, // Anime mark error
34  ID_SEASON_MARK, // Season mark error
35  };
36 
37  Exception(unsigned int _id, std::string _desc);
38  unsigned int getId();
39  std::string getDescription();
40  };
41 };
42 
43 #endif
Exception(unsigned int _id, std::string _desc)
std::string desc
Definition: Exception.h:26
unsigned int getId()
unsigned int id
Definition: Exception.h:25
std::string getDescription()
The exception class of the anfo library.
Definition: Exception.h:22