[gnome-builder] Ide.overrides: add NotSupportedError()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Ide.overrides: add NotSupportedError()
- Date: Sun, 30 Oct 2016 03:53:51 +0000 (UTC)
commit 350b3e1262f7ba56c20984d8b8a0bbcde2a67ae0
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 29 20:42:10 2016 -0700
Ide.overrides: add NotSupportedError()
This is a helper to create a NotSupportedError() which is handy since we
use that error code to detect unsupported features.
libide/Ide.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/Ide.py b/libide/Ide.py
index 5c4e2dd..df6faa2 100644
--- a/libide/Ide.py
+++ b/libide/Ide.py
@@ -157,5 +157,9 @@ class DBusService:
error = GLib.Error.new_literal(GLib.io_channel_error_quark(), 1, 'Not implemented yet')
return False
+def NotSupportedError():
+ return GLib.Error.new_literal(Gio.io_error_quark(), 'not supported', Gio.IOErrorEnum.NOT_SUPPORTED)
+
+Ide.NotSupportedError = NotSupportedError
Ide.DBusService = DBusService
Ide.DBusMethod = DBusMethod
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]