Sunil Mohan Adapa 7a88c46bb2
errors: Rename PlinthError to FbxError
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-08-28 07:38:33 -04:00

28 lines
626 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Project specific errors
"""
class FbxError(Exception):
"""Base class for all FreedomBox specific errors."""
class PackageNotInstalledError(FbxError):
"""Could not complete module setup due to missing package."""
class DomainNotRegisteredError(FbxError):
"""
An action couldn't be performed because this
FreedomBox doesn't have a registered domain
"""
class MissingPackageError(FbxError):
"""Package is not available to be installed at this time."""
def __init__(self, name):
self.name = name
super().__init__(self.name)