Skip to content

Commit d193bf2

Browse files
committed
cleanup rename to CanInterfaceNotImplementedError
1 parent 6f65d77 commit d193bf2

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

can/bus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
Any backend dependent configurations are passed in this dictionary
6767
6868
:raises ValueError: If parameters are out of range
69-
:raises can.CanBackEndError: If the driver cannot be accessed
69+
:raises can.CanInterfaceNotImplementedError: If the driver cannot be accessed
7070
:raises can.CanInitializationError: If the bus cannot be initialized
7171
"""
7272
self._periodic_tasks: List[_SelfRemovingCyclicTask] = []

can/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Exception (Python standard library)
66
+-- ...
77
+-- CanError (python-can)
8-
+-- CanBackendError
8+
+-- CanInterfaceNotImplementedError
99
+-- CanInterfaceNotImplementedError
1010
+-- CanOperationError
1111
+-- CanTimeoutError

can/interface.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ def _get_class_for_interface(interface):
2222
2323
:raises:
2424
NotImplementedError if the interface is not known
25-
:raises:
26-
CanBackEndError if there was a problem while importing the
27-
interface or the bus class within that
25+
:raises CanInterfaceNotImplementedError:
26+
if there was a problem while importing the interface or the bus class within that
2827
"""
2928
# Find the correct backend
3029
try:
@@ -82,7 +81,7 @@ def __new__(
8281
Should contain an ``interface`` key with a valid interface name. If not,
8382
it is completed using :meth:`can.util.load_config`.
8483
85-
:raises: can.CanBackEndError
84+
:raises: can.CanInterfaceNotImplementedError
8685
if the ``interface`` isn't recognized or cannot be loaded
8786
8887
:raises: can.CanInitializationError

can/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def load_config(
149149
All unused values are passed from ``config`` over to this.
150150
151151
:raises:
152-
CanBackEndError if the ``interface`` isn't recognized
152+
CanInterfaceNotImplementedError if the ``interface`` isn't recognized
153153
"""
154154

155155
# start with an empty dict to apply filtering to all sources

0 commit comments

Comments
 (0)