]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/touchscreen.cpp
Add a dedicated exception class for unavailable input devices
[libs/gui.git] / source / input / touchscreen.cpp
index 4facb8c60e44f9b662c636a225946923245497dc..c4de688a76d32efddcf3905f7a4bdeded22e204b 100644 (file)
@@ -9,7 +9,7 @@ Touchscreen::Touchscreen(Graphics::Window &w):
        window(w)
 {
        if(!is_available())
-               throw runtime_error("touchscreen not available");
+               throw device_not_available("Touchscreen");
 
        name = "Touchscreen";