-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add base error, change MissingProtocolUnitError -> MissingUnitResultE…
…rror
- Loading branch information
Showing
4 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
# This code is part of OpenFE and is licensed under the MIT license. | ||
# For details, see https://github.com/OpenFreeEnergy/gufe | ||
|
||
class BaseGufeError(Exception): | ||
"""The base gufe error that other errors should subclass.""" | ||
|
||
# Protocol Errors | ||
class ProtocolValidationError(Exception): | ||
class ProtocolValidationError(BaseGufeError): | ||
"""Error when the protocol setup or settings can not be validated.""" | ||
|
||
|
||
class ProtocolSetupError(Exception): | ||
class ProtocolSetupError(BaseGufeError): | ||
"""Error when executing the setup unit of the protocol.""" | ||
|
||
|
||
class ProtocolExecutionError(Exception): | ||
class ProtocolExecutionError(BaseGufeError): | ||
"""Error when executing the production unit of the protocol.""" | ||
|
||
|
||
class ProtocolAnalysisError(Exception): | ||
class ProtocolAnalysisError(BaseGufeError): | ||
"""Error when trying to perform some analyses after the protocol has been executed.""" | ||
|
||
|
||
# Protocol Results Errors | ||
class MissingProtocolUnitError(Exception): | ||
"""Error when a ProtocolDAGResult is missing a protocol unit.""" | ||
class MissingUnitResultError(BaseGufeError): | ||
"""Error when a ProtocolDAGResult is missing a unit result.""" | ||
|
||
|
||
class ProtocolUnitFailureError(Exception): | ||
"""Error when a ProtocolDAGResult contains an failed protocol unit.""" | ||
class ProtocolUnitFailureError(BaseGufeError): | ||
"""Error when a ProtocolDAGResult contains a failed protocol unit.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters