summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2013-04-25 18:00:35 -0500
committerGeorge Kraft <george.kraft@calxeda.com>2013-04-25 18:00:35 -0500
commit0acc5d6be09bb5c7b3e1493ac2004f732ea28665 (patch)
treecbcfe46fd9d8c1c1bcfd8c5cc97c1575ba816dfe
parente3c5510f86b5a7e646557bb90d861c3e69ed3b90 (diff)
downloadcxmanage-0acc5d6be09bb5c7b3e1493ac2004f732ea28665.tar.gz
cx_exceptions: Remove NoBootCmdDefaultError
Not used anymore, and kind of a weird error anyway.
-rw-r--r--cxmanage_api/cx_exceptions.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/cxmanage_api/cx_exceptions.py b/cxmanage_api/cx_exceptions.py
index 17fb122..410b5d7 100644
--- a/cxmanage_api/cx_exceptions.py
+++ b/cxmanage_api/cx_exceptions.py
@@ -284,31 +284,6 @@ class InvalidImageError(Exception):
return self.msg
-class NoBootCmdDefaultError(Exception):
- """Raised when there is no bootcmd_default arg in the boot order.
-
- >>> from cxmanage_api.cx_exceptions import NoBootCmdDefaultError
- >>> raise NoBootCmdDefaultError('My custom exception text!')
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- cxmanage_api.cx_exceptions.NoBootCmdDefaultError: My custom exception text!
-
- :param msg: Exceptions message and details to return to the user.
- :type msg: string
- :raised: When there is no bootcmd_default arg in the boot order.
-
- """
-
- def __init__(self, msg):
- """Default constructor for the NoBootCmdDefaultError class."""
- super(NoBootCmdDefaultError, self).__init__()
- self.msg = msg
-
- def __str__(self):
- """String representation of this Exception class."""
- return self.msg
-
-
class UnknownBootCmdError(Exception):
"""Raised when the boot command is not: run bootcmd_pxe, run bootcmd_sata,
run bootcmd_mmc, setenv bootdevice, or reset.