lewis.core.exceptions

Defines exception types specific to lewis. The main intention of these exception types is that they can be caught and meaningful messages can be displayed to the user.

Members

AccessViolationException

This exception can be raised in situation where the performed action (accessing a property or similar) is not allowed.

LewisException

This exception type is used to distinguish exceptions that are expected from unexpected ones.

LimitViolationException

An exception that can be raised in a device to indicate a limit violation.

exception lewis.core.exceptions.AccessViolationException[source]

Bases: Exception

This exception can be raised in situation where the performed action (accessing a property or similar) is not allowed. An example is BoundPV for enforcing read-only PVs.

exception lewis.core.exceptions.LewisException[source]

Bases: Exception

This exception type is used to distinguish exceptions that are expected from unexpected ones. This enables better error handling and more importantly better presentation of errors to the users.

exception lewis.core.exceptions.LimitViolationException[source]

Bases: Exception

An exception that can be raised in a device to indicate a limit violation. It is for example raised by the check_limits.