00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FITSERROR_H
00011 #define FITSERROR_H 1
00012 #include <exception>
00013 #include <iostream>
00014
00015
00016
00017 #include <string>
00018 using std::string;
00019
00020
00021 namespace CCfits {
00022
00081
00082
00083
00084
00085
00086 class FitsException
00087 {
00088 public:
00089 FitsException (const string& msg, bool& silent);
00090
00091 protected:
00092 private:
00093 private:
00094 };
00095
00096
00097
00098 class FitsError : public FitsException
00099 {
00100 public:
00101 FitsError (int errornum, bool silent = true);
00102
00103 protected:
00104 private:
00105 void printMsg (int error);
00106
00107 private:
00108 };
00109
00110
00111
00112 class FitsFatal
00113 {
00114 public:
00115 FitsFatal (const string& diag);
00116
00117 protected:
00118 private:
00119 private:
00120 };
00121
00122
00123
00124
00125
00126
00127
00128 }
00129
00130
00131 #endif