]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/generic/gamecontroller.cpp
Add a dedicated exception class for unavailable input devices
[libs/gui.git] / source / input / generic / gamecontroller.cpp
index b320342c732cc1adc5b071781bdcebf659eb5ca0..9ba7130eb925097a7003711d364358ae3c44bf53 100644 (file)
@@ -8,7 +8,7 @@ namespace Input {
 
 GameController::GameController(unsigned)
 {
-       throw runtime_error("not supported");
+       throw device_not_available("GameController");
 }
 
 GameController::~GameController()