Statistics
| Branch: | Revision:

root / error.h @ ded37f0d

History | View | Annotate | Download (1.7 kB)

# Date Author Comment
75d789f8 09/05/2012 09:48 pm Luiz Capitulino

error: add error_setg()

Signed-off-by: Luiz Capitulino <>

df1e608a 08/13/2012 08:17 pm Luiz Capitulino

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 dictionary
in string format.

Before this commit, error_set() and qerror_report() would receive...

a8cb2d30 08/13/2012 08:17 pm Luiz Capitulino

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 <>
Reviewed-by: Markus Armbruster <>

ea25fbca 08/13/2012 07:21 pm Luiz Capitulino

error: add error_get_class()

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>

13f59ae8 08/13/2012 07:21 pm Luiz Capitulino

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 to
take care of it.

The QERR_ macros are changed to contain a place holder value for the...

d195325b 07/23/2012 01:55 pm Paolo Bonzini

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...

79020cfc 03/15/2012 03:39 pm Luiz Capitulino

Error: Introduce error_copy()

Signed-off-by: Luiz Capitulino <>

d3608b7c 07/21/2011 10:48 pm Luiz Capitulino

Error: Fix build when qemu-common.h is not included

Commit e4ea5e2d0e0e4c5188ab45b66f3195062ae059dc added the use of
the macro GCC_FMT_ATTR to error.h, however compiler.h is not
included by error.h

This will cause a build error when files including error.h...

e4ea5e2d 06/16/2011 05:42 pm Stefan Weil

error framework: Fix compilation for w32/w64

The declaration of function error_set() should use macro GCC_FMT_ATTR
instead 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...

d5ec4f27 06/07/2011 09:52 pm Luiz Capitulino

Introduce the new error framework

New error-handling framework that allows for exception-like error
propagation.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>