summaryrefslogtreecommitdiff
path: root/compressor/exceptions.py
blob: 273743a885142d509eb1bbe300b851f703e41b40 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
class CompressorError(Exception):
    """
    A general error of the compressor
    """

    pass


class UncompressableFileError(Exception):
    """
    This exception is raised when a file cannot be compressed
    """

    pass


class FilterError(Exception):
    """
    This exception is raised when a filter fails
    """

    pass


class ParserError(Exception):
    """
    This exception is raised when the parser fails
    """

    pass


class OfflineGenerationError(Exception):
    """
    Offline compression generation related exceptions
    """

    pass


class FilterDoesNotExist(Exception):
    """
    Raised when a filter class cannot be found.
    """

    pass


class TemplateDoesNotExist(Exception):
    """
    This exception is raised when a template does not exist.
    """

    pass


class TemplateSyntaxError(Exception):
    """
    This exception is raised when a template syntax error is encountered.
    """

    pass