mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
python: create NTSTATUSError, HRESULTError and WERRORError
The advantage of these over the previous use of just RuntimeError is that we can catch just the errors we want, without having to catch all possible RuntimeError cases and assume they decode to a tuple Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=12398
This commit is contained in:
committed by
Garming Sam
parent
f72da5ba51
commit
c8505c53da
@ -399,3 +399,7 @@ generate_random_password = _glue.generate_random_password
|
||||
strcasecmp_m = _glue.strcasecmp_m
|
||||
strstr_m = _glue.strstr_m
|
||||
is_ntvfs_fileserver_built = _glue.is_ntvfs_fileserver_built
|
||||
|
||||
NTSTATUSError = _glue.NTSTATUSError
|
||||
HRESULTError = _glue.HRESULTError
|
||||
WERRORError = _glue.WERRORError
|
||||
|
Reference in New Issue
Block a user