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: PartedException

Check failed

Parameters:

errors (list) – List of errors

errors() List[str][source]

Returns the list of errors

Returns:

List of errors

Return type:

List[str]

exception parted.exceptions.IOError[source]

Bases: PartedException

Exception raised when an IO error occurs

exception parted.exceptions.InvalidDeviceError[source]

Bases: PartedException

Device is not valid

exception parted.exceptions.InvalidDiskError[source]

Bases: PartedException

Disk is not valid

exception parted.exceptions.InvalidDiskTypeError[source]

Bases: PartedException

Disk type is not valid

exception parted.exceptions.InvalidFileSystemError[source]

Bases: PartedException

File system is not valid

exception parted.exceptions.InvalidObjectError[source]

Bases: PartedException

Underlying object (wrapped Ped*) is not valid

Parameters:

message (str) – Message to show

exception parted.exceptions.InvalidPartitionError[source]

Bases: PartedException

Partition is not valid

exception parted.exceptions.NotOpenedError[source]

Bases: PartedException

Device is closed and an operation is requested

exception parted.exceptions.PartedException[source]

Bases: Exception

Base exception for parted module

Parameters:

message (str) – Message to show

exception parted.exceptions.ReadOnlyError[source]

Bases: IOError

Exception raised when a write error occurs