diff options
| author | 2024-03-08 13:40:36 +0800 | |
|---|---|---|
| committer | 2024-03-08 13:40:36 +0800 | |
| commit | 2bac8d9689081faf9ccd01264f6cb5702a3b180b (patch) | |
| tree | f05f5b99bf6c08f2e25f50e98c40a18917aef70b | |
| parent | 91462b287864c06d72d93381abe5124c8ff04dd8 (diff) | |
| download | ipm-2bac8d9689081faf9ccd01264f6cb5702a3b180b.tar.gz ipm-2bac8d9689081faf9ccd01264f6cb5702a3b180b.zip | |
fix(exceptions): update exceptions
| -rw-r--r-- | src/ipm/exceptions.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/ipm/exceptions.py b/src/ipm/exceptions.py index 3629363..f7c540f 100644 --- a/src/ipm/exceptions.py +++ b/src/ipm/exceptions.py @@ -1,11 +1,15 @@ -class IpmException(Exception): +class IPMException(Exception): """IPM Base Exception""" -class FileException(IpmException): +class FileException(IPMException): """IPM File Base Exception""" +class ProjectError(FileException): + """Exceptions on `infini.toml` project file""" + + class TomlLoadFailed(FileException): """Failed to load `infini.toml`""" @@ -22,21 +26,21 @@ class FileExistsError(FileException, FileExistsError): """Raises when file not founded""" -class SyntaxError(IpmException, SyntaxError): +class SyntaxError(IPMException, SyntaxError): """Syntax Error in config file""" -class HashException(IpmException): +class HashException(IPMException): """Exception occured in hashing""" -class VerifyFailed(IpmException): +class VerifyFailed(IPMException): """Failed to verify ipk file""" -class FileTypeMismatch(IpmException): +class FileTypeMismatch(IPMException): """Ipk file type mismatch""" -class PackageExsitsError(IpmException): +class PackageExsitsError(IPMException): """Package already installed""" |
