mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-16 15:29:20 +01:00
docs: added doc strings
This commit is contained in:
@@ -247,6 +247,10 @@ class ConfigSignal(Signal):
|
||||
|
||||
|
||||
class DeviceClassConnectionError(Device):
|
||||
"""
|
||||
Device that always raises a connection error when trying to connect.
|
||||
It is used to test the wait_for_connection method in the DeviceServer.
|
||||
"""
|
||||
|
||||
@property
|
||||
def connected(self):
|
||||
@@ -257,6 +261,11 @@ class DeviceClassConnectionError(Device):
|
||||
|
||||
|
||||
class DeviceClassInitError(Device):
|
||||
"""
|
||||
Device that always raises an error when trying to construct the object.
|
||||
It is used to test the error handling in the DeviceServer.
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
raise RuntimeError("Init error")
|
||||
|
||||
Reference in New Issue
Block a user