parted.exceptions module
Parted exceptions
This module contains all the exceptions that can be raised by python-parted
- author:
Adolfo Gómez, dkmaster at dkmon dot com
Note
This exceptions are not reised by parted directly, but by the python wrapper.
- exception parted.exceptions.CheckError(errors: List[str])[source]
Bases:
PartedExceptionCheck failed
- Parameters:
errors (list) – List of errors
- exception parted.exceptions.IOError[source]
Bases:
PartedExceptionException raised when an IO error occurs
- exception parted.exceptions.InvalidDeviceError[source]
Bases:
PartedExceptionDevice is not valid
- exception parted.exceptions.InvalidDiskError[source]
Bases:
PartedExceptionDisk is not valid
- exception parted.exceptions.InvalidDiskTypeError[source]
Bases:
PartedExceptionDisk type is not valid
- exception parted.exceptions.InvalidFileSystemError[source]
Bases:
PartedExceptionFile system is not valid
- exception parted.exceptions.InvalidObjectError[source]
Bases:
PartedExceptionUnderlying object (wrapped Ped*) is not valid
- Parameters:
message (str) – Message to show
- exception parted.exceptions.InvalidPartitionError[source]
Bases:
PartedExceptionPartition is not valid
- exception parted.exceptions.NotOpenedError[source]
Bases:
PartedExceptionDevice is closed and an operation is requested