From 9f9daf9a636c0e6ea435c93bfbccaf05e581eed9 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 18 Nov 2009 23:05:30 -0200 Subject: Introduce QError QError is a high-level data type which represents an exception in QEMU, it stores the following error information: - class Error class name (eg. "ServiceUnavailable") - description A detailed error description, which can contain references to run-time error data - filename The file name of where the error occurred - line number The exact line number of the error - function The function name of where the error occurred - run-time data Any run-time error data Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- qjson.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qjson.c') diff --git a/qjson.c b/qjson.c index 12e6cf0d0..60c904d3f 100644 --- a/qjson.c +++ b/qjson.c @@ -224,6 +224,8 @@ static void to_json(const QObject *obj, QString *str) } break; } + case QTYPE_QERROR: + /* XXX: should QError be emitted? */ case QTYPE_NONE: break; } -- cgit v1.2.3