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