mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-15 20:24:42 +08:00
22 lines
446 B
Python
22 lines
446 B
Python
#!/usr/bin/env python
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
|
class BoxError(Exception):
|
|
"""Non standard dictionary exceptions"""
|
|
|
|
|
|
class BoxKeyError(BoxError, KeyError, AttributeError):
|
|
"""Key does not exist"""
|
|
|
|
|
|
class BoxTypeError(BoxError, TypeError):
|
|
"""Cannot handle that instance's type"""
|
|
|
|
|
|
class BoxValueError(BoxError, ValueError):
|
|
"""Issue doing something with that value"""
|
|
|
|
|
|
class BoxWarning(UserWarning):
|
|
"""Here be dragons"""
|