Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

/home/r0/dav/atlas.dir/atlas3/sources/error/error.h

Go to the documentation of this file.
00001 /*
00002   This is error.h
00003 
00004   Copyright (C) 2004,2005 Fokko du Cloux
00005   part of the Atlas of Reductive Lie Groups
00006 
00007   See file main.cpp for full copyright notice
00008 */
00009 
00010 #ifndef ERROR_H  /* guard against multiple inclusions */
00011 #define ERROR_H
00012 
00013 /******** type declarations *************************************************/
00014 
00015 namespace atlas {
00016 
00017 namespace error {
00018 
00019   struct FatalError;
00020 
00021   // i-o errors
00022   struct InputError;
00023 
00024   // error for interactive constructors
00025   struct InnerClassError;
00026 
00027   // overflow errors
00028   struct MemoryOverflow;
00029   struct NumericOverflow;
00030   struct NumericUnderflow;
00031 
00032   struct CartanError {};
00033 
00034   typedef FatalError PrimesError;
00035 
00036 }
00037 
00038 /******** type definitions **************************************************/
00039 
00040 namespace error {
00041 
00042 struct FatalError {
00043   void operator() (const char*);
00044 };
00045 
00046 // user abandoning input
00047 struct InputError {
00048   void operator() (const char*);
00049 };
00050 
00051 // failure opening or writing output
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

Generated on Wed Mar 26 16:49:33 2008 for atlas by  doxygen 1.3.9.1