Changeset 2505 in Sophya for trunk/SophyaLib/BaseTools
- Timestamp:
- Mar 15, 2004, 5:46:20 PM (22 years ago)
- Location:
- trunk/SophyaLib/BaseTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/pexceptions.h
r1607 r2505 28 28 //! Constructor with the message and error-id (optional) specification 29 29 explicit PThrowable(const string& m, int ident=0) 30 : msg(m), id(ident) {} 31 explicit PThrowable(const char* m, int ident=0) 30 32 : msg(m), id(ident) {} 31 33 virtual ~PThrowable() { } … … 48 50 public: 49 51 explicit PError(const string& m, int id=0) : PThrowable(m,id) {} 52 explicit PError(const char* m, int id=0) : PThrowable(m,id) {} 50 53 }; 51 54 … … 69 72 public: 70 73 explicit AllocationError(const string& m, int id=0) : PError(m,id) {} 74 explicit AllocationError(const char* m, int id=0) : PError(m,id) {} 71 75 }; 72 76 … … 76 80 public: 77 81 explicit NullPtrError(const string& m, int id=0) : PError(m,id) {} 82 explicit NullPtrError(const char* m, int id=0) : PError(m,id) {} 78 83 }; 79 84 … … 84 89 public: 85 90 explicit ForbiddenError(const string& m, int id=0) : PError(m,id) {} 91 explicit ForbiddenError(const char* m, int id=0) : PError(m,id) {} 86 92 }; 87 93 … … 92 98 public: 93 99 explicit AssertionFailedError(const string& m, int id=0) : PError(m,id) {} 100 explicit AssertionFailedError(const char* m, int id=0) : PError(m,id) {} 94 101 }; 95 102 … … 114 121 public: 115 122 explicit IOExc(const string& m, int id=0) : PException(m,id) {} 123 explicit IOExc(const char* m, int id=0) : PException(m,id) {} 116 124 }; 117 125 … … 121 129 public: 122 130 explicit FileFormatExc(const string& m, int id=0) : IOExc(m,id) {} 131 explicit FileFormatExc(const char* m, int id=0) : IOExc(m,id) {} 123 132 }; 124 133 … … 128 137 public: 129 138 explicit SzMismatchError(const string& m, int id=0) : PException(m,id) {} 139 explicit SzMismatchError(const char* m, int id=0) : PException(m,id) {} 130 140 }; 131 141 … … 135 145 public: 136 146 explicit RangeCheckError(const string& m, int id=0) : PException(m,id) {} 147 explicit RangeCheckError(const char* m, int id=0) : PException(m,id) {} 137 148 }; 138 149 … … 142 153 public: 143 154 explicit ParmError(const string& m, int id=0) : PException(m,id) {} 155 explicit ParmError(const char* m, int id=0) : PException(m,id) {} 144 156 }; 145 157 … … 149 161 public: 150 162 explicit NotAvailableOperation(const string& m, int id=0) : PException(m,id) {} 163 explicit NotAvailableOperation(const char* m, int id=0) : PException(m,id) {} 151 164 }; 152 165 … … 156 169 public: 157 170 explicit TypeMismatchExc(const string& m, int id=0) : PException(m,id) {} 171 explicit TypeMismatchExc(const char* m, int id=0) : PException(m,id) {} 158 172 }; 159 173 … … 163 177 public: 164 178 explicit MathExc(const string& m, int id=0) : PException(m,id) {} 179 explicit MathExc(const char* m, int id=0) : PException(m,id) {} 165 180 }; 166 181 … … 170 185 public: 171 186 explicit SingMatrixExc(const string& m, int id=0) : MathExc(m,id) {} 187 explicit SingMatrixExc(const char* m, int id=0) : MathExc(m,id) {} 172 188 }; 173 189 … … 177 193 public: 178 194 explicit DuplicateIdExc(const string& m, int id=0) : PException(m,id) {} 195 explicit DuplicateIdExc(const char* m, int id=0) : PException(m,id) {} 179 196 }; 180 197 … … 184 201 public: 185 202 explicit NotFoundExc(const string& m, int id=0) : PException(m,id) {} 203 explicit NotFoundExc(const char* m, int id=0) : PException(m,id) {} 186 204 }; 187 205 … … 191 209 public: 192 210 explicit CaughtSignalExc(const string& m, int id=0) : PException(m,id) {} 193 }; 211 explicit CaughtSignalExc(const char* m, int id=0) : PException(m,id) {} 212 }; 194 213 195 214 } // namespace SOPHYA … … 209 228 // Compatibility with EROS-PEIDA exceptions 210 229 211 #define EXC_ABORT_NEG(_x)212 #define EXC_ABORT_ALL(_x)213 214 215 #define END_CONSTRUCTOR216 230 217 231 #define TRY try … … 226 240 #define THROW_SAME throw; 227 241 228 #define RETURN(x) return(x)229 #define RETURN_ return230 231 #define rangeCheckErr RangeCheckError("")232 #define typeMismatchErr TypeMismatchExc("")233 #define allocationErr AllocationError("")234 #define parmErr ParmError("")235 #define inconsistentErr ParmError("")236 #define sizeMismatchErr SzMismatchError("")237 #define fileErr IOExc("")238 #define nullPtrErr NullPtrError("")239 #define singMatxErr SingMatrixExc("")240 242 241 243 #define DBASSERT(_x_) ASSERT(_x_) -
trunk/SophyaLib/BaseTools/sversion.h
r2485 r2505 3 3 4 4 #define SOPHYA_VERSION 1.8 5 #define SOPHYA_REVISION 46 #define SOPHYA_TAG "V_ Dec2003"5 #define SOPHYA_REVISION 6 6 #define SOPHYA_TAG "V_Fev2003" 7 7 8 8 #endif
Note:
See TracChangeset
for help on using the changeset viewer.