anfo
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
D:
Projekte
Anfo-Project
include
anfo
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
anfo::Exception::ID_NOT_ANFO
Definition:
Exception.h:30
anfo::Exception::Exception
Exception(unsigned int _id, std::string _desc)
anfo::Exception::desc
std::string desc
Definition:
Exception.h:26
anfo::Exception::getId
unsigned int getId()
anfo::Exception::ID_SEASON_MARK
Definition:
Exception.h:34
anfo::Exception::ID_ANIME_MARK
Definition:
Exception.h:33
anfo::Exception::id
unsigned int id
Definition:
Exception.h:25
anfo::Exception::getDescription
std::string getDescription()
anfo::Exception::ID_VALUE_ERROR
Definition:
Exception.h:31
anfo::Exception
The exception class of the anfo library.
Definition:
Exception.h:22
anfo::Exception::ID_INVALID_TYPE
Definition:
Exception.h:32
Generated on Sat May 10 2014 18:36:57 for anfo by
1.8.7