Python wrapping code for gmxapi mdrun bindings.
[alexxy/gromacs.git] / python_packaging / src / gmxapi / exceptions.py
index 1bda7be8576b5e7bcc5551f206a578817a67445c..25f53261fec2715655e4a9d11c0b23279ef7177c 100644 (file)
@@ -1,3 +1,4 @@
+#
 # This file is part of the GROMACS molecular simulation package.
 #
 # Copyright (c) 2019, by the GROMACS development team, led by
@@ -86,6 +87,15 @@ class NotImplementedError(Error):
     # to avoid releasing incomplete implementations (e.g. overlooked "To do"s)
 
 
+class FeatureNotAvailableError(Error):
+    """Requested feature not available in the current environment.
+
+    This exception will usually indicate an issue with the user's environment or
+    run time details. There may be a missing optional dependency, which should
+    be specified in the exception message.
+    """
+
+
 class ProtocolError(Error):
     """Unexpected API behavior or protocol violation.