aboutsummaryrefslogtreecommitdiffstats
path: root/climl/interface.py
blob: 549eb8b3885cc644049f97a2846437c431a908ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'''
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

class HookAbortError(HookError, StopIteration):
    '''
        Run this if your hook declares it does not want other hooks to process
        email.
    '''

    pass