diff options
author | VG <vg@devys.org> | 2016-05-19 17:28:42 +0200 |
---|---|---|
committer | VG <vg@devys.org> | 2016-05-19 17:28:42 +0200 |
commit | 1dc11eb465ff70ea51452326935208a40c2b49bf (patch) | |
tree | a24111af8d8af3bdd0bd9e878191354d056bfaeb /climl/interface.py | |
parent | 0db947a0a43f3406819b45f7506e5a28b121a3aa (diff) | |
download | climl-1dc11eb465ff70ea51452326935208a40c2b49bf.tar.gz climl-1dc11eb465ff70ea51452326935208a40c2b49bf.tar.bz2 climl-1dc11eb465ff70ea51452326935208a40c2b49bf.zip |
Add interface: hook can do non-critical exception
Diffstat (limited to 'climl/interface.py')
-rw-r--r-- | climl/interface.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/climl/interface.py b/climl/interface.py new file mode 100644 index 0000000..5a7f6ba --- /dev/null +++ b/climl/interface.py @@ -0,0 +1,19 @@ +''' +This file defines symbols used to make communication between +hooks/plugins/extensions and core of climl. +''' + +class HookError(Exception): + ''' + Base class for hooks exception, they should not use this directly + ''' + + pass + +class HookAbortError(HookError): + ''' + This exception is used to indicate to core of climl it should not mark + email \Seen for now. + ''' + + pass |