Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/exceptions.py
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-05-10 15:56:28 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-05-10 15:56:28 +0200
commit683da22298abbd90f51d4dd38a7ec4b0dfb04555 (patch)
treeec2ac04967f9277df038edc362201937b331abe5 /archinstall/lib/exceptions.py
parentaf7ab9833c9f9944874f0162ae0975175ddc628d (diff)
parent3381cd55673e5105697d354cf4a1be9a7bcef062 (diff)
merged with upstreamHEADmaster
Diffstat (limited to 'archinstall/lib/exceptions.py')
-rw-r--r--archinstall/lib/exceptions.py35
1 files changed, 8 insertions, 27 deletions
diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py
index a66e4e04..80926e0b 100644
--- a/archinstall/lib/exceptions.py
+++ b/archinstall/lib/exceptions.py
@@ -3,23 +3,20 @@ from typing import Optional, TYPE_CHECKING
if TYPE_CHECKING:
from .general import SysCommandWorker
-class RequirementError(BaseException):
- pass
-
-class DiskError(BaseException):
+class RequirementError(Exception):
pass
-class UnknownFilesystemFormat(BaseException):
+class DiskError(Exception):
pass
-class ProfileError(BaseException):
+class UnknownFilesystemFormat(Exception):
pass
-class SysCallError(BaseException):
+class SysCallError(Exception):
def __init__(self, message :str, exit_code :Optional[int] = None, worker :Optional['SysCommandWorker'] = None) -> None:
super(SysCallError, self).__init__(message)
self.message = message
@@ -27,33 +24,17 @@ class SysCallError(BaseException):
self.worker = worker
-class PermissionError(BaseException):
+class HardwareIncompatibilityError(Exception):
pass
-class ProfileNotFound(BaseException):
+class ServiceException(Exception):
pass
-class HardwareIncompatibilityError(BaseException):
+class PackageError(Exception):
pass
-class UserError(BaseException):
+class Deprecated(Exception):
pass
-
-
-class ServiceException(BaseException):
- pass
-
-
-class PackageError(BaseException):
- pass
-
-
-class TranslationError(BaseException):
- pass
-
-
-class Deprecated(BaseException):
- pass \ No newline at end of file