1
0
Эх сурвалжийг харах

changing an old throwing statement into the new one

Patrik Kovacs 6 жил өмнө
parent
commit
3ea5f0874e
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lib/HdfFile.cpp

+ 1 - 1
lib/HdfFile.cpp

@@ -15,7 +15,7 @@ hdf4cpp::HdfFile::HdfFile(const std::string& path) : HdfObject(HFILE, FILE) {
     vId = Hopen(path.c_str(), DFACC_READ, 0);
 
     if(sId == FAIL || vId == FAIL) {
-        throw HdfException(getType(), getClassType(), INVALID_ID);
+        raiseException(INVALID_ID);
     }
 
     Vstart(vId);