add "NoSuch" custom exceptions
Add 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.
This commit is contained in:
parent
1e00081991
commit
3ff8eef322
1 changed files with 48 additions and 0 deletions
|
|
@ -130,3 +130,51 @@ class LiveMediaError(GenericError):
|
|||
class GSSAPIAuthError(AuthError):
|
||||
"""Raised when GSSAPI issue in authentication"""
|
||||
faultCode = 1023
|
||||
|
||||
|
||||
class NoSuchArchive(object):
|
||||
faultCode = 1024
|
||||
|
||||
|
||||
class NoSuchBuild(object):
|
||||
faultCode = 1025
|
||||
|
||||
|
||||
class NoSuchChannel(object):
|
||||
faultCode = 1026
|
||||
|
||||
|
||||
class NoSuchContentGenerator(object):
|
||||
faultCode = 1027
|
||||
|
||||
|
||||
class NoSuchPackage(object):
|
||||
faultCode = 1028
|
||||
|
||||
|
||||
class NoSuchPermission(object):
|
||||
faultCode = 1029
|
||||
|
||||
|
||||
class NoSuchRPM(object):
|
||||
faultCode = 1030
|
||||
|
||||
|
||||
class NoSuchRepo(object):
|
||||
faultCode = 1031
|
||||
|
||||
|
||||
class NoSuchTag(object):
|
||||
faultCode = 1032
|
||||
|
||||
|
||||
class NoSuchTarget(object):
|
||||
faultCode = 1033
|
||||
|
||||
|
||||
class NoSuchTask(object):
|
||||
faultCode = 1034
|
||||
|
||||
|
||||
class NoSuchUser(object):
|
||||
faultCode = 1035
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue