[gnome-games/wip/exalm/runner-refactor: 9/58] core: Add RunnerError



commit a56b8c4af3b495eee10dfd89123393af27fe68f2
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Mar 6 15:18:50 2020 +0500

    core: Add RunnerError
    
    This will allow to forward errors to DisplayView from Runner more cleanly.

 src/core/runner-error.vala | 7 +++++++
 src/meson.build            | 1 +
 2 files changed, 8 insertions(+)
---
diff --git a/src/core/runner-error.vala b/src/core/runner-error.vala
new file mode 100644
index 00000000..99ba4d83
--- /dev/null
+++ b/src/core/runner-error.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public errordomain Games.RunnerError {
+       UNSUPPORTED_SYSTEM,
+       INVALID_GAME,
+       OTHER
+}
diff --git a/src/meson.build b/src/meson.build
index ba8dd3b0..354dfee0 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -36,6 +36,7 @@ vala_sources = [
   'core/plugin-register-iterator.vala',
   'core/plugin-registrar.vala',
   'core/runner.vala',
+  'core/runner-error.vala',
   'core/runner-factory.vala',
   'core/savestate.vala',
   'core/title.vala',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]