| NoPartitionError | Raised when a partition is not found. |
| InvalidImageError | Raised when an image is not valid. |
| TimeoutError | Raised when a timeout has been reached. |
| PartitionInUseError | Raised when trying to upload to a CDB/BOOT_LOG partition that’s in use. |
| NoSensorError | Raised when a sensor or sensors are not found. |
| NoFirmwareInfoError | Raised when the firmware info cannot be obtained from a node. |
| IPDiscoveryError | Raised when server IP discovery fails for any reason. |
| CommandFailedError | Raised when a command has failed. |
| FirmwareConfigError | Raised when there are slot/firmware version inconsistencies. |
| SocmanVersionError | Raised when there is an error with the users socman version. |
| ImageSizeError | Raised when the actual size of the image is not what is expected. |
| UnknownBootCmdError | Raised when the boot command is not: run bootcmd_pxe, run bootcmd_sata, run bootcmd_mmc, setenv bootdevice, or reset. |
| PriorityIncrementError | Raised when the Priority on a SIMG image cannot be altered. |
| TransferFailure | Raised when the transfer of a file has failed. |
Bases: exceptions.Exception
Raised when a partition is not found.
>>> from cxmanage_api.cx_exceptions import NoPartitionError
>>> raise NoPartitionError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.NoPartitionError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When a partition is not found. |
Bases: exceptions.Exception
Raised when an image is not valid. (i.e. fails verification).
>>> from cxmanage_api.cx_exceptions import InvalidImageError
>>> raise InvalidImageError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.InvalidImageError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When an image is not valid. (i.e. fails verification). |
Bases: exceptions.Exception
Raised when a timeout has been reached.
>>> from cxmanage_api.cx_exceptions import TimeoutError
>>> raise TimeoutError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.TimeoutError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When a timeout has been reached. |
Bases: exceptions.Exception
Raised when trying to upload to a CDB/BOOT_LOG partition that’s in use.
>>> from cxmanage_api.cx_exceptions import PartitionInUseError
>>> raise PartitionInUseError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.PartitionInUseError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When trying to upload to a CDB/BOOT_LOG partition that’s in use. |
Bases: exceptions.Exception
Raised when a sensor or sensors are not found.
>>> from cxmanage_api.cx_exceptions import NoSensorError
>>> raise NoSensorError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.NoSensorError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When a sensor or sensors are not found. |
Bases: exceptions.Exception
Raised when the firmware info cannot be obtained from a node.
>>> from cxmanage_api.cx_exceptions import NoFirmwareInfoError
>>> raise NoFirmwareInfoError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.NoFirmwareInfoError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When the firmware info cannot be obtained from a node. |
Bases: exceptions.Exception
Raised when server IP discovery fails for any reason.
>>> from cxmanage_api.cx_exceptions import IPDiscoveryError
>>> raise IPDiscoveryError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.IPDiscoveryError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When IP discovery fails for any reason. |
Bases: exceptions.Exception
Raised when a command has failed.
>>> from cxmanage_api.cx_exceptions import CommandFailedError
>>> raise CommandFailedError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.CommandFailedError: My custom exception text!
| Parameters: |
|
|---|---|
| Raised : | When a command has failed. |
Bases: exceptions.Exception
Raised when there are slot/firmware version inconsistencies.
>>> from cxmanage_api.cx_exceptions import FirmwareConfigError
>>> raise FirmwareConfigError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.FirmwareConfigError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When there are slot/firmware version inconsistencies. |
Bases: exceptions.Exception
Raised when there is an error with the users socman version.
>>> from cxmanage_api.cx_exceptions import SocmanVersionError
>>> raise SocmanVersionError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.SocmanVersionError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When there is an error with the users socman version. |
Bases: exceptions.Exception
Raised when the actual size of the image is not what is expected.
>>> from cxmanage_api.cx_exceptions import ImageSizeError
>>> raise ImageSizeError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.ImageSizeError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When the actual size of the image is not what is expected. |
Bases: exceptions.Exception
>>> from cxmanage_api.cx_exceptions import UnknownBootCmdError
>>> raise UnknownBootCmdError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.UnknownBootCmdError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When the boot command is not: run bootcmd_pxe, run bootcmd_sata, run bootcmd_mmc, setenv bootdevice, or reset. |
Bases: exceptions.Exception
Raised when the Priority on a SIMG image cannot be altered.
>>> from cxmanage_api.cx_exceptions import PriorityIncrementError
>>> raise PriorityIncrementError('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.PriorityIncrementError: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When the Priority on a SIMG image cannot be altered. |
Bases: exceptions.Exception
Raised when the transfer of a file has failed.
>>> from cxmanage_api.cx_exceptions import TransferFailure
>>> raise TransferFailure('My custom exception text!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cxmanage_api.cx_exceptions.TransferFailure: My custom exception text!
| Parameters: | msg (string) – Exceptions message and details to return to the user. |
|---|---|
| Raised : | When the transfer of a file has failed. |