mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
27 lines
547 B
Python
27 lines
547 B
Python
# -*- 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
|