mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
24 lines
575 B
Python
24 lines
575 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
from plinth.errors import PlinthError
|
|
|
|
|
|
class BorgError(PlinthError):
|
|
"""Generic borg errors"""
|
|
|
|
|
|
class BorgRepositoryDoesNotExistError(BorgError):
|
|
"""Borg access to a repository works but the repository does not exist"""
|
|
|
|
|
|
class SshfsError(PlinthError):
|
|
"""Generic sshfs errors"""
|
|
|
|
|
|
class BorgRepositoryExists(BorgError):
|
|
"""A repository at target location already exists during initialization."""
|
|
|
|
|
|
class BorgUnencryptedRepository(BorgError):
|
|
"""Attempt to provide password on an unencrypted repository."""
|