summaryrefslogtreecommitdiffhomepage
path: root/libs/enzyme/exceptions.py
blob: b2252aa474abcaaec9e2d6dbfcdd329d7ba6448a (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
# -*- coding: utf-8 -*-
__all__ = ['Error', 'MalformedMKVError', 'ParserError', 'ReadError', 'SizeError']


class Error(Exception):
    """Base class for enzyme exceptions"""
    pass


class MalformedMKVError(Error):
    """Wrong or malformed element found"""
    pass


class ParserError(Error):
    """Base class for exceptions in parsers"""
    pass


class ReadError(ParserError):
    """Unable to correctly read"""
    pass


class SizeError(ParserError):
    """Mismatch between the type of the element and the size of its data"""
    pass