aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/psi/exception.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-02-24 12:48:55 +0800
committer简律纯 <i@jyunko.cn>2024-02-24 12:48:55 +0800
commitae345a2f193a4d6022edda76523a39f6e891843e (patch)
treefbe13a483db44dbb4ac222f1cd29583edda9341f /psi/exception.py
parent9b916be9c8db9eedabde0331aef0cc53b5918b34 (diff)
downloadTRPGNivis-ae345a2f193a4d6022edda76523a39f6e891843e.tar.gz
TRPGNivis-ae345a2f193a4d6022edda76523a39f6e891843e.zip
refactor!: rewrite python package
Diffstat (limited to 'psi/exception.py')
-rw-r--r--psi/exception.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/psi/exception.py b/psi/exception.py
deleted file mode 100644
index a8b7201..0000000
--- a/psi/exception.py
+++ /dev/null
@@ -1,36 +0,0 @@
-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.")
- ```
- """
-
-class GrammarError(PsiException):
- """
- An exception class for grammar-related errors in Psi code.
-
- This class inherits from the `PsiException` class.
-
- Example:
- ```python
- raise GrammarError("Invalid grammar encountered in the Psi code.")
- ```
- """