\r
#include <Environment.hpp>\r
\r
-#include <NullPointerException.hpp>\r
-#include <FileNotFoundException.hpp>\r
-#include <InvalidArgumentException.hpp>\r
-#include <LogicException.hpp>\r
-#include <MsgException.hpp>\r
-\r
#include <stdlib.h>\r
\r
#include <sys/types.h>\r
}\r
\r
Environment::Environment(const char* file)\r
- throw(NullPointerException, InvalidArgumentException)\r
+ throw(NullPointerException, FileNotFoundException)\r
{\r
// check parameters\r
\r
struct stat statBuf = {0};\r
\r
if(stat(file, &statBuf) < 0 || !S_ISREG(statBuf.st_mode))\r
- throw InvalidArgumentException("file (file not found)");\r
+ throw FileNotFoundException("file (file not found)");\r
\r
this->file = file;\r
this->loaded = false;\r
}\r
\r
} // namespace Msg\r
-} // namespace SimGrid
\ No newline at end of file
+} // namespace SimGrid\r
+\r