The first commit moves Koji's custom exceptions classes to a dedicated koji.exceptions library. This organizes the code so it's easier to maintain, and matches patterns in other well-known projects, like requests.exceptions or cryptography.exceptions.
The second commit adds more custom exception classes. This will allow to programmatically determine the error causes from complex RPCs.
This commit simply defines the new classes and fault codes. Nothing in Koji's codebase uses these exceptions yet. We'll begin to raise these exceptions after this is widely deployed for clients in the field.
The first commit moves Koji's custom exceptions classes to a dedicated
koji.exceptionslibrary. This organizes the code so it's easier to maintain, and matches patterns in other well-known projects, likerequests.exceptionsorcryptography.exceptions.The second commit adds more custom exception classes. This will allow to programmatically determine the error causes from complex RPCs.
This commit simply defines the new classes and fault codes. Nothing in Koji's codebase uses these exceptions yet. We'll begin to raise these exceptions after this is widely deployed for clients in the field.
Fixes: https://pagure.io/koji/issue/3147