summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/exception.xml13
-rw-r--r--portato/plugins/exception.py2
2 files changed, 15 insertions, 0 deletions
diff --git a/plugins/exception.xml b/plugins/exception.xml
new file mode 100644
index 0000000..385e743
--- /dev/null
+++ b/plugins/exception.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<plugin xmlns="http://portato.sourceforge.net/plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://portato.sourceforge.net/plugin http://portato.sourceforge.net/plugin.xsd">
+
+ <author>René 'Necoro' Neumann</author>
+ <name>Exception Thrower</name>
+
+ <import>portato.plugins.exception</import>
+
+ <menu>
+ <item call="throw">Throw exception</item>
+ </menu>
+
+</plugin>
diff --git a/portato/plugins/exception.py b/portato/plugins/exception.py
new file mode 100644
index 0000000..64bdb77
--- /dev/null
+++ b/portato/plugins/exception.py
@@ -0,0 +1,2 @@
+def throw (*args, **kwargs):
+ raise Exception, "As requested, Sir!"