SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
errcode.h
Go to the documentation of this file.
1
21#ifndef CSTCODERR_H
22#define CSTCODERR_H
23
24#include <map>
25#include <string>
26
27namespace nsException
28{
29
30enum {
31 KNoExc = 0,
36 KFileError = 252,
37 KErrArg = 253,
38 KExcStd = 254,
45 kNoLine = 304,
47 kNoCircle = 306,
49};
50
51const std::map <unsigned, std::string> kError
52{
53 {kErrTooHight, "Trop haut"},
54 {kErrTooRight, "Trop à droite"},
55 {kErrFontSize, "Taille de police incorrecte"},
56 {kNoTriangle, "Nombre incorrect de points pour la construction du triangle"},
57 {kNoLine, "Nombre incorrect de points pour la construction d'une ligne"},
58 {kNoRectangle, "Nombre incorrect de points pour la construction d'un rectangle"},
59 {kNoCircle, "Nombre incorrect de points pour la construction d'un cercle"},
60 {kTypeNotFound, "Instanciation impossible: Pas le bon type"},
61};
62
63} // namespace nsException
64
65#endif // CSTCODERR_H
Espace de nom pour la gestion d'exceptions.
@ KNoError
Definition: errcode.h:32
@ kErrTooHight
Definition: errcode.h:41
@ kNoTriangle
Definition: errcode.h:44
@ kColorOutOfBounds
Definition: errcode.h:34
@ KFileError
Definition: errcode.h:36
@ kErrFontSize
Definition: errcode.h:43
@ kNoCircle
Definition: errcode.h:47
@ kNoRectangle
Definition: errcode.h:46
@ kTypeNotFound
Definition: errcode.h:48
@ kExcInconnue
Definition: errcode.h:39
@ kErrTooRight
Definition: errcode.h:42
const std::map< unsigned, std::string > kError
Definition: errcode.h:52