History | View | Annotate | Download (1.5 kB)
error, qerror: pass desc string to error calls
This commit changes all QERR_ macros to contain a human message (ie.the desc string found in qerr_table[]) instead of a json dictionaryin string format.
Before this commit, error_set() and qerror_report() would receive...
error: drop unused functions
Besides being unused, they operate on the current error format,which is going to be replaced soon.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>
error: add error_get_class()
error, qerror: add ErrorClass argument to error functions
The new argument is added to functions qerror_report() and error_set().It's stored in Error and QError. qerror_report_err() is also updated totake care of it.
The QERR_ macros are changed to contain a place holder value for the...
qapi: fix error propagation
Don't overwrite / leak previously set errors.Make traversal cope with missing mandatory sub-structs.Don't try to end a container that could not be started.
v1->v2:- unchanged
v2->v3:- instead of examining, assert that we never overwrite errors with...
Error: Introduce error_copy()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Error: Fix build when qemu-common.h is not included
Commit e4ea5e2d0e0e4c5188ab45b66f3195062ae059dc added the use ofthe macro GCC_FMT_ATTR to error.h, however compiler.h is notincluded by error.h
This will cause a build error when files including error.h...
error framework: Fix compilation for w32/w64
The declaration of function error_set() should use macro GCC_FMT_ATTRinstead of gcc's format printf attribute.
For w32/w64, both declarations are different and GCC_FMT_ATTR is needed.Compilation for w64 even failed with the original code because mingw64...
Introduce the new error framework
New error-handling framework that allows for exception-like errorpropagation.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>