PTU5KAS/kas
Felix Moessbauer a5750901c6 use custom exceptions to improve error handling
This patch adds the KasUserError exception class to distinguish between
internal kas exceptions and user or configuration errors. Exceptions
previously raised on user errors are ported over by deriving
KasUserError. In case of user errors, only the exception message is
shown, but no stacktrace. This makes it easier for users to locate the
issue as the reason is now stated in the last line of the output.

Kas internal exceptions are not subject to this change to help the
developers to find the root cause more easily.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-05 21:54:40 +02:00
..
plugins improve documentation of lockfile support 2023-05-03 09:05:55 +02:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py add support to override refspec of repos 2023-04-23 14:04:51 +02:00
config.py add support for lockfiles on checkout 2023-04-23 14:05:04 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py forward build-concurrency related env vars 2022-10-19 11:02:17 +02:00
includehandler.py use custom exceptions to improve error handling 2023-05-05 21:54:40 +02:00
kas.py use custom exceptions to improve error handling 2023-05-05 21:54:40 +02:00
kasusererror.py use custom exceptions to improve error handling 2023-05-05 21:54:40 +02:00
libcmds.py kas: add GIT_CREDENTIAL_USEHTTPPATH environment variable 2023-04-20 22:53:15 +02:00
libkas.py libkas: Fix typo 2022-11-11 13:36:12 +01:00
repos.py use custom exceptions to improve error handling 2023-05-05 21:54:40 +02:00
schema-kas.json add support to override refspec of repos 2023-04-23 14:04:51 +02:00