Skip to content

Commit

Permalink
Improved algorithm input error classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Apr 15, 2024
1 parent fd24186 commit f10004e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vantage6-algorithm-tools/vantage6/algorithm/tools/exceptions.py
Expand Up @@ -87,7 +87,19 @@ class CollectResultsError(ClientError):


class InputError(AlgorithmError):
"""Generic error raised with input handling."""
"""Generic error raised with algorithm input handling.
Example usage:
- User input is invalid.
- Subtask fails due to invalid input received from the parent task.
"""


class UserInputError(InputError):
"""Raised when user input is invalid.
Example usage:
- User input is not in the expected format.
"""


class DeserializationError(InputError):
Expand Down

0 comments on commit f10004e

Please sign in to comment.