| Total Complexity | 0 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from .utils import export |
||
| 2 | |||
| 3 | |||
| 4 | @export |
||
| 5 | class CandvException(Exception): |
||
| 6 | """ |
||
| 7 | Base exception |
||
| 8 | |||
| 9 | .. versionadded:: 1.4.0 |
||
| 10 | |||
| 11 | """ |
||
| 12 | |||
| 13 | |||
| 14 | @export |
||
| 15 | class CandvTypeError(TypeError, CandvException): |
||
| 16 | """ |
||
| 17 | .. versionadded:: 1.4.0 |
||
| 18 | """ |
||
| 19 | |||
| 20 | |||
| 21 | @export |
||
| 22 | class CandvInvalidGroupMemberError(CandvTypeError): |
||
| 23 | """ |
||
| 24 | .. versionadded:: 1.4.0 |
||
| 25 | """ |
||
| 26 | |||
| 27 | |||
| 28 | @export |
||
| 29 | class CandvInvalidConstantClass(CandvTypeError): |
||
| 30 | """ |
||
| 31 | .. versionadded:: 1.4.0 |
||
| 32 | """ |
||
| 33 | |||
| 34 | |||
| 35 | @export |
||
| 36 | class CandvContainerMisusedError(CandvTypeError): |
||
| 37 | """ |
||
| 38 | .. versionadded:: 1.4.0 |
||
| 39 | """ |
||
| 40 | |||
| 41 | |||
| 42 | @export |
||
| 43 | class CandvConstantAlreadyBoundError(ValueError, CandvException): |
||
| 44 | """ |
||
| 45 | .. versionadded:: 1.4.0 |
||
| 46 | """ |
||
| 47 | |||
| 48 | |||
| 49 | @export |
||
| 50 | class CandvMissingConstantError(KeyError, CandvException): |
||
| 51 | """ |
||
| 52 | .. versionadded:: 1.4.0 |
||
| 53 | """ |
||
| 54 | |||
| 55 | |||
| 56 | @export |
||
| 57 | class CandvValueNotFoundError(ValueError, CandvException): |
||
| 58 | """ |
||
| 59 | .. versionadded:: 1.4.0 |
||
| 61 |