-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception.py
More file actions
47 lines (33 loc) · 1.08 KB
/
Copy pathexception.py
File metadata and controls
47 lines (33 loc) · 1.08 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class PyMultiFuncException(Exception):
"""Base exception for all `PyMultiFunc` related errors."""
pass
"""
PyMultiFuncNoOverideException:
- Exceptions responsible for the lack of proper overload
"""
class PyMultiFuncNoOverideException(PyMultiFuncException):
pass
class NoOverideError(PyMultiFuncException):
"""
This exception is raised when python does not find the desired overload
"""
pass
"""
PyMultiFuncDefaultArgException:
- A subgroup of exceptions related to issues with default arguments.
"""
class PyMultiFuncDefaultArgException(PyMultiFuncException):
pass
class NoDefaultsArgsError(PyMultiFuncDefaultArgException):
"""
Raised when a `DEFAULT_ARG` marker is passed,
but the target function has no parameters with default values.
"""
pass
class NoDefaultValueForThisArgError(PyMultiFuncDefaultArgException):
"""
Raised when a `DEFAULT_ARG` marker is passed for a parameter
that does not have a default value.
This may indicate a mismatch between argument position and its default value.
"""
pass