aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/psi/exception.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/psi/exception.py b/src/psi/exception.py
index e69de29..838d72b 100644
--- a/src/psi/exception.py
+++ b/src/psi/exception.py
@@ -0,0 +1,24 @@
+class PsiException(Exception):
+ """
+ An exception class for Psi-specific exceptions.
+
+ This class inherits from the built-in `Exception` class.
+
+ Example:
+ ```python
+ raise PsiException("An error occurred in the Psi code.")
+ ```
+ """
+
+
+class ValueError(PsiException):
+ """
+ An exception class for value-related errors in Psi code.
+
+ This class inherits from the `PsiException` class.
+
+ Example:
+ ```python
+ raise ValueError("Invalid value encountered in the Psi code.")
+ ```
+ """