Skip to content

Commit

Permalink
refactor: refactored basedatabase methods
Browse files Browse the repository at this point in the history
  • Loading branch information
weibullguy committed Sep 19, 2024
1 parent a8aad9a commit ecf3b48
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 326 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ markers = [
ignore-paths = [
'tests*'
]
ignore_patterns = [
'*.pyi'
]
persistent = true
extension-pkg-whitelist = [
'pango'
Expand Down
8 changes: 4 additions & 4 deletions src/ramstk/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def __init__(self, msg: str = "") -> None:
:param str msg: the message to display to the user when this
exception is raised.
"""
self.msg = msg or "An error occured with RAMSTK."
self.msg = msg or "An error occurred with RAMSTK."
super().__init__(msg)


class DataAccessError(RAMSTKError):
class DataAccessError(Exception):
"""Exception raised when attempting to access non-existent data."""

def __init__(self, msg: str) -> None:
def __init__(self, msg: str = "") -> None:
"""Initialize DataAccessError instance.
This exception is intended for use for non-existent data in the data
Expand All @@ -33,7 +33,7 @@ def __init__(self, msg: str) -> None:
:param msg: the message to display to the user when this
exception is raised.
"""
super().__init__(msg=msg)
super().__init__(msg)


class OutOfRangeError(RAMSTKError):
Expand Down
Loading

0 comments on commit ecf3b48

Please sign in to comment.