python-libnet: Use new NTSTATUSError, WERRORError and DsExtendedError exceptions
authorAndrew Bartlett <abartlet@samba.org>
Mon, 31 Oct 2016 23:38:48 +0000 (12:38 +1300)
committerGarming Sam <garming@samba.org>
Fri, 4 Nov 2016 03:41:19 +0000 (04:41 +0100)
commit2a49c7451949d42e5a4d6fce3ce607f05f9e7b71
tree4299fbe45045aa4e37401ca3797096c0d06b0944
parente51256c7d58040eeee02fc189b55afbc58379f81
python-libnet: Use new NTSTATUSError, WERRORError and DsExtendedError exceptions

This will allow callers to catch specific errors rather than RuntimeException

As this slightly changes the exception, the timecmd test must be updated.

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
python/samba/tests/samba_tool/timecmd.py
source4/libnet/py_net.c