Skip to content

Commit

Permalink
feat: add more dooit exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Jul 31, 2024
1 parent fa127ae commit a05af5a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dooit/api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,21 @@ class DooitError(Exception):
"""
Base class for all exceptions raised by the API.
"""


class SiblingAdditionError(DooitError):
"""
Raised when user tries to add a sibling to a non-parented node (i.e Manager Object)
"""


class WorkspaceAdditionError(DooitError):
"""
Raised when user tries to add a workspace to a todo object
"""


class TodoAdditionError(DooitError):
"""
Raised when user tries to add a todo to manager class
"""

0 comments on commit a05af5a

Please sign in to comment.