aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/ipm/exceptions.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ipm/exceptions.py b/src/ipm/exceptions.py
index e6a01c0..b19b60c 100644
--- a/src/ipm/exceptions.py
+++ b/src/ipm/exceptions.py
@@ -2,11 +2,19 @@ class IpmException(Exception):
"""IPM Base Exception"""
-class FileNotFoundError(IpmException, FileNotFoundError):
+class FileException(IpmException):
+ """IPM File Base Exception"""
+
+
+class TomlLoadFailed(FileException):
+ """Failed to load `infini.toml`"""
+
+
+class FileNotFoundError(FileException, FileNotFoundError):
"""Raises when file not founded"""
-class FileExistsError(IpmException, FileExistsError):
+class FileExistsError(FileException, FileExistsError):
"""Raises when file not founded"""