Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 634 Bytes

error_management.md

File metadata and controls

22 lines (19 loc) · 634 Bytes
form pyvium import Pyvium
from pyvium.errors import DeviceNotConnectedToIviumSoftError, IviumSoftNotRunningError

try:
    Pyvium.open_driver()
    Pyvium.get_potential()
except IviumSoftNotRunningError:
    print('Tell the user the software is not running')
except DeviceNotConnectedToIviumSoftError:
    raise

Available errors
DeviceBusyError
DeviceNotConnectedToIviumSoftError
DriverNotOpenError
NoDeviceDetectedError
IviumSoftNotRunningError
CellOffError