We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f89774 commit 26b8f63Copy full SHA for 26b8f63
silverback/exceptions.py
@@ -44,7 +44,7 @@ def __init__(self):
44
45
46
# TODO: `ExceptionGroup` added in Python 3.11
47
-class StartupFailure(SilverbackException):
+class StartupFailure(SilverbackException, click.ClickException):
48
def __init__(self, *exceptions: BaseException | str | None):
49
if len(exceptions) == 1 and isinstance(exceptions[0], str):
50
super().__init__(exceptions[0])
@@ -54,7 +54,7 @@ def __init__(self, *exceptions: BaseException | str | None):
54
super().__init__("Startup failure(s) detected. See logs for details.")
55
56
57
-class NoTasksAvailableError(SilverbackException):
+class NoTasksAvailableError(StartupFailure):
58
def __init__(self):
59
super().__init__("No tasks to execute")
60
0 commit comments