aboutsummaryrefslogtreecommitdiffstats
path: root/climl/interface.py
blob: a42faace4d1c662261d3ddfb2c846bc914a53312 (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
28
29
30
'''
This file defines symbols used to make communication between
hooks/plugins/extensions and core of climl.
'''

class Error(Exception):
    ''' Base class for exceptions in this package '''

class HookError(Error):
    '''
        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 processed for now.
    '''

    pass

class HookStopIteration(HookError, StopIteration):
    '''
        Run this if your hook declares it does not want other hooks to process
        email. The email will be marked processed.
    '''

    pass