]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/process.cpp
Add new exception classes for some common errors
[libs/core.git] / source / core / process.cpp
index 43b7384a5a3d66d49fd708e45d7cd274795f04ac..4c5ed4651164615fc67b1d8a7c7523856876a233 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/io/console.h>
+#include "except.h"
 #include "process.h"
 #include "process_private.h"
 
@@ -78,7 +79,7 @@ void Process::execute(const FS::Path &command, const Arguments &args)
 unsigned Process::get_exit_code() const
 {
        if(!finished)
-               throw logic_error("not finished");
+               throw invalid_state("not finished");
        return exit_code;
 }