Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
grzywin committed Apr 11, 2024
1 parent a2658e5 commit dac48f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scylla_stress/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
"""
Init file for scylla_stress
"""

from scylla_stress.scylla_stress import main
6 changes: 5 additions & 1 deletion scylla_stress/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Custom exceptions defined by the user
"""


class RegexNotFound(Exception):
"""
A class for custom exceptions
A class for custom Regex exception
"""

def __init__(self, value: str = ''):
Expand All @@ -13,6 +14,9 @@ def __init__(self, value: str = ''):


class DockerDaemonOff(Exception):
"""
A class for custom Docker Daemon Off exception
"""
def __init__(self, value: str = ''):
self.message = f"Docker daemon is probably not running or container name is invalid. Details:\n{value}"
super().__init__(self.message)

0 comments on commit dac48f9

Please sign in to comment.