Exceptions
Contains all custom exceptions used in this program.
BtrfsPartitionNotFoundError ¶
Bases: BaseBtrfsBackupError
Raised, if the target location is not a valid btrfs partition.
BtrfsSubvolumeNotFoundError ¶
Bases: BaseBtrfsBackupError
Raised, if a BTRFS subvolume does not exist.
DestinationDirectoryNotFoundError ¶
Bases: BaseBtrfsBackupError
Raised, if the destination is not found and configured to fail.
FailedProcessError ¶
Bases: BaseBtrfsBackupError
Raised, if a process returns a non-zero return code.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cmd
|
list[str]
|
failed command. |
required |
stdout
|
str
|
standard output of that process. |
''
|
stderr
|
str
|
standard error of that process. |
''
|
Source code in b4_backup/exceptions.py
InvalidConnectionUrlError ¶
Bases: BaseBtrfsBackupError
Raised, if the connection url is malformed.
InvalidRetentionRuleError ¶
Bases: BaseBtrfsBackupError
Raised, if the retention rule string is malformed.
SnapshotNotFoundError ¶
Bases: BaseBtrfsBackupError
Raised, if a BTRFS backup snapshot does not exist.
UnknownProtocolError ¶
Bases: InvalidConnectionUrlError
Raised, if an unsupported protocol is used.