-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
#include "SALOME_ResourcesCatalog_Parser.hxx"
-#include "Utils_SALOME_Exception.hxx"
#include <iostream>
#include <sstream>
case blaunch:
return "blaunch";
default:
- throw SALOME_Exception("Unknown protocol");
+ throw ResourcesException("Unknown protocol");
}
}
else if (protocolStr == "blaunch")
return blaunch;
else
- throw SALOME_Exception((string("Unknown protocol ") + protocolStr).c_str());
+ throw ResourcesException((string("Unknown protocol ") + protocolStr).c_str());
}
ostream & operator<<(ostream &os, const ParserResourcesType &prt)
case single_machine:
return "single_machine";
default:
- throw SALOME_Exception("Unknown resource type");
+ throw ResourcesException("Unknown resource type");
}
}
case coorm:
return "coorm";
default:
- throw SALOME_Exception("Unknown batch type");
+ throw ResourcesException("Unknown batch type");
}
}
case prun:
return "prun";
default:
- throw SALOME_Exception("Unknown MPI implementation type");
+ throw ResourcesException("Unknown MPI implementation type");
}
}
else if (resourceTypeStr == "single_machine")
type = single_machine;
else
- throw SALOME_Exception((string("Unknown resource type ") + resourceTypeStr).c_str());
+ throw ResourcesException((string("Unknown resource type ") + resourceTypeStr).c_str());
}
void ParserResourcesType::setBatchTypeStr(const string & batchTypeStr)
else if (batchTypeStr == "" || batchTypeStr == "none" || batchTypeStr == "ssh_batch")
Batch = none;
else
- throw SALOME_Exception((string("Unknown batch type ") + batchTypeStr).c_str());
+ throw ResourcesException((string("Unknown batch type ") + batchTypeStr).c_str());
}
void ParserResourcesType::setMpiImplTypeStr(const string & mpiImplTypeStr)
else if (mpiImplTypeStr == "" || mpiImplTypeStr == "no mpi")
mpi = nompi;
else
- throw SALOME_Exception((string("Unknown MPI implementation type ") + mpiImplTypeStr).c_str());
+ throw ResourcesException((string("Unknown MPI implementation type ") + mpiImplTypeStr).c_str());
}
void ParserResourcesType::setClusterInternalProtocolStr(const string & internalProtocolTypeStr)
else if (canLaunchBatchJobsStr == "false")
can_launch_batch_jobs = false;
else
- throw SALOME_Exception((string("Invalid boolean value for can_launch_batch_jobs: ") +
+ throw ResourcesException((string("Invalid boolean value for can_launch_batch_jobs: ") +
canLaunchBatchJobsStr).c_str());
}
else if (canRunContainersStr == "false")
can_run_containers = false;
else
- throw SALOME_Exception((string("Invalid boolean value for can_run_containers: ") +
+ throw ResourcesException((string("Invalid boolean value for can_run_containers: ") +
canRunContainersStr).c_str());
}