Explorar o código

changing an old throwing statement into the new one

Patrik Kovacs %!s(int64=7) %!d(string=hai) anos
pai
achega
3ea5f0874e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);