You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
446 B
23 lines
446 B
1 year ago
|
#!/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"""
|