aboutsummaryrefslogtreecommitdiffstats
path: root/climl/interface.py
blob: 5bafa2bcabe2ab2e7b6c4bed51ffda1d365105b3 (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 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