From: Ondrej Lichtner olichtne@redhat.com
Defines some basic Exceptions signaling some error with a Device object (to be added in a later commit). Since these Exceptions can be transmitted to the Controller, they need to be in the Common package.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com --- lnst/Common/DeviceError.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lnst/Common/DeviceError.py
diff --git a/lnst/Common/DeviceError.py b/lnst/Common/DeviceError.py new file mode 100644 index 0000000..cf1b7b7 --- /dev/null +++ b/lnst/Common/DeviceError.py @@ -0,0 +1,22 @@ +""" +Defines the DeviceError, DeviceDeleted and DeviceNotFound exceptions. + +Copyright 2017 Red Hat, Inc. +Licensed under the GNU General Public License, version 2 as +published by the Free Software Foundation; see COPYING for details. +""" + +__author__ = """ +olichtne@redhat.com (Ondrej Lichtner) +""" + +from lnst.Common.LnstError import LnstError + +class DeviceError(LnstError): + pass + +class DeviceDeleted(DeviceError): + pass + +class DeviceNotFound(DeviceError): + pass