summaryrefslogtreecommitdiff
path: root/source4/libcli/util/pyerrors.h
AgeCommit message (Collapse)AuthorFilesLines
2017-09-06python: Fix bad type in conversion of NTSTATUS.Lumir Balhar1-1/+1
More info: https://lists.samba.org/archive/samba-technical/2017-August/122574.html Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2016-11-04pyerrors: Add PyErr_Set{WERROR,HRESULT,NTSTATUS}_and_string()Andrew Bartlett1-0/+15
This varient allows control of the text explaination string 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
2016-11-04python: create NTSTATUSError, HRESULTError and WERRORErrorAndrew Bartlett1-3/+12
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
2015-03-13pidl/python: support HRESULT errors in generated python bindings.Günther Deschner1-0/+2
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-08-06s4:libcli/pyerrors: add PyErr_NTSTATUS_NOT_OK_RAISE()Stefan Metzmacher1-0/+6
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Aug 6 18:06:50 CEST 2012 on sn-devel-104
2012-08-06s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/Stefan Metzmacher1-1/+1
metze
2010-04-04s4-python: Remove convenience macro PyErr_SetStringError.Jelmer Vernooij1-3/+0
This macro assumed that all errors were runtime errors.
2010-02-26s4-krb5: propogate errors from a lot more kerberos functionsAndrew Tridgell1-0/+5
We need to be able to give sensible error messages when a kerberos calls fails. This propogates the kerberos error up the stack to the caller. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2008-12-18Add convenience macro for raising exceptions for NTSTATUS / WERROR.Jelmer Vernooij1-0/+12
2008-06-17Use friendly NTSTATUS message in python code when possible.Jelmer Vernooij1-1/+1
(This used to be commit 09cf8c7dd82bb95e2f8782782286869654d96375)
2008-05-24Add convenience functions for setting Python objects from errors.Jelmer Vernooij1-2/+6
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
2008-05-24Export functions for setting NTSTATUS and WERRORs in python.Jelmer Vernooij1-0/+29
(This used to be commit 4bcb92d2d49d90863b1e64b15d055517fbfd263c)