gpgme/lang
Justus Winter 1e68f93dc5
python: Improve error handling.
* NEWS: Update.
* lang/python/src/core.py (Context.__read__): New helper function.
(Context.encrypt): Attach partial results to exceptions.
(Context.decrypt): Likewise.
(Context.sign): Likewise.
(Context.verify): Likewise.
* lang/python/src/errors.py (GpgError): Move the core of GPGMEError to
this class, add a nicer interface for it.  This makes the errors
thrown by this library more uniform, and allows us to track the
underlying error in synthesized high-level errors.
(GPGMEError): Simplify.
(...): Make sure to call the parent classes' constructor in all other
classes.
--

Attach partial results to errors.  Some operations return results even
though they signal an error.  Of course this information must be taken
with a grain of salt.  But often, this information is useful for
diagnostic uses or to give the user feedback.  Since the normal
control flow is disrupted by the exception, the callee can no longer
return results, hence we attach them to the exception objects.

GnuPG-bug-id: 3271
Signed-off-by: Justus Winter <justus@g10code.com>
2017-07-11 12:28:39 +02:00
..
cl .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
cpp Add isDeVs to ostream operator 2017-07-10 17:27:24 +02:00
python python: Improve error handling. 2017-07-11 12:28:39 +02:00
qt tests: Make sure to kill all previously running daemons. 2017-05-10 15:52:12 +02:00
Makefile.am build: Declare all languages for make dist. 2016-08-10 16:28:36 +02:00
README python: Rename Python module from PyME to gpg. 2016-10-31 15:42:27 +01:00

Language Support for GPGME
--------------------------

This directory contains support for other languages than C.

Please note that language support components may be under a different
license than GPGME itself.  You can find more information in each
sub-directory.

Directory	Language

cl		Common Lisp
cpp		C++
qt		Qt-Framework API
python		Python 2 and 3 (module name: gpg)