]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/thread.cpp
Add new exception classes for some common errors
[libs/core.git] / source / core / thread.cpp
index 841cc3f48e8111a894dc9151268fce3858dcd4f0..ad78d945cbd85e995d954ba6411964ccaa702421 100644 (file)
@@ -1,4 +1,4 @@
-#include <stdexcept>
+#include "except.h"
 #include "thread.h"
 #include "thread_private.h"
 
@@ -39,7 +39,7 @@ void Thread::kill()
 void Thread::launch()
 {
        if(_state>=RUNNING)
-               throw logic_error("already launched");
+               throw already_called("Thread::launch");
 
        platform_launch();
        _state = RUNNING;