Skip to content

Commit

Permalink
Better name for custom error. Add comment/todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ijpulidos committed Nov 7, 2024
1 parent 4428945 commit ffc3aad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions feflow/utils/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""Module with custom exceptions that can be useful for including in protocols"""


# TODO: We should implement the base class in gufe.
# Issue https://github.com/OpenFreeEnergy/gufe/issues/385
class ProtocolError(Exception):
"""Base exception for OpenFE protocols"""


class MethodConstraintError(ProtocolError):
class MethodLimitationtError(ProtocolError):
"""Custom exception to be raised when a fundamental limitation in the methodology is
that does not support."""

Expand Down

0 comments on commit ffc3aad

Please sign in to comment.