00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ERROR_H
00011 #define ERROR_H
00012
00013
00014
00015 namespace atlas {
00016
00017 namespace error {
00018
00019 struct FatalError;
00020
00021
00022 struct InputError;
00023
00024
00025 struct InnerClassError;
00026
00027
00028 struct MemoryOverflow;
00029 struct NumericOverflow;
00030 struct NumericUnderflow;
00031
00032 struct CartanError {};
00033
00034 typedef FatalError PrimesError;
00035
00036 }
00037
00038
00039
00040 namespace error {
00041
00042 struct FatalError {
00043 void operator() (const char*);
00044 };
00045
00046
00047 struct InputError {
00048 void operator() (const char*);
00049 };
00050
00051
00052 struct OutputError {
00053 void operator() (const char*);
00054 };
00055
00056 struct InnerClassError {
00057 void operator() (const char*);
00058 };
00059
00060 struct MemoryOverflow {
00061 void operator() (const char*);
00062 };
00063
00064 struct NumericOverflow {
00065 void operator() (const char*);
00066 };
00067
00068 struct NumericUnderflow {
00069 void operator() (const char*);
00070 };
00071
00072 }
00073
00074 }
00075
00076 #endif