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.cpp

Go to the documentation of this file.
00001 /*
00002   This is error.cpp
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 #include "error.h"
00011 
00012 #include <iostream>
00013 
00014 /*****************************************************************************
00015 
00016         Chapter I -- The FatalError class
00017 
00018   ... explain here when it is stable ...
00019 
00020 ******************************************************************************/
00021 
00022 namespace atlas {
00023 
00024 namespace error {
00025 
00026 void FatalError::operator() (const char* mess)
00027 
00028 /*
00029   Synopsis: executes the FatalError.
00030 
00031   This prints a short message and exits.
00032 */
00033 
00034 {
00035   std::cerr << mess << std::endl;
00036   exit(0);
00037 }
00038 
00039 void InputError::operator() (const char* mess)
00040 
00041 /*
00042   Synopsis: executes the InputError.
00043 
00044   This prints a short message and returns.
00045 */
00046 
00047 {
00048   std::cerr << mess << std::endl;
00049   return;
00050 }
00051 
00052 void OutputError::operator() (const char* mess)
00053 
00054 /*
00055   Synopsis: executes the OutputError.
00056 
00057   This prints a short message and returns.
00058 */
00059 
00060 {
00061   std::cerr << mess << std::endl;
00062   return;
00063 }
00064 
00065 void InnerClassError::operator() (const char* mess)
00066 
00067 /*
00068   Synopsis: executes the InnerClassError.
00069 
00070   This prints a short message and returns.
00071 */
00072 
00073 {
00074   std::cerr << mess << std::endl;
00075   return;;
00076 }
00077 
00078 void MemoryOverflow::operator() (const char* mess)
00079 
00080 /*
00081   Synopsis: executes the MemoryOverflow error.
00082 
00083   This prints a short message and returns.
00084 */
00085 
00086 {
00087   std::cerr << mess << std::endl;
00088   return;
00089 }
00090 
00091 void NumericOverflow::operator() (const char* mess)
00092 
00093 /*
00094   Synopsis: executes the NumericOverflow error.
00095 
00096   This prints a short message and returns.
00097 */
00098 
00099 {
00100   std::cerr << mess << std::endl;
00101   return;
00102 }
00103 
00104 void NumericUnderflow::operator() (const char* mess)
00105 
00106 /*
00107   Synopsis: executes the NumericUnderflow error.
00108 
00109   This prints a short message and returns.
00110 */
00111 
00112 {
00113   std::cerr << mess << std::endl;
00114   return;
00115 }
00116 
00117 }
00118 
00119 }

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