Skip to content

Commit

Permalink
added base exception class (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut authored Mar 8, 2024
1 parent 187d00f commit d645116
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions zeus/exception.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Base Zeus Exception Class."""


class ZeusBaseError(Exception):
"""Zeus base exception class."""

def __init__(self, message: str) -> None:
"""Initialize Base Zeus Exception."""
self.message = message
super().__init__(message)

def __str__(self) -> str:
"""Return message."""
return self.message

0 comments on commit d645116

Please sign in to comment.