Patchwork [v4,12/15] add QERR_BASE_ID_NOT_FOUND

login
register
mail settings
Submitter Stefan Hajnoczi
Date Jan. 6, 2012, 2:01 p.m.
Message ID <1325858501-25741-13-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/134657/
State New
Headers show

Comments

Stefan Hajnoczi - Jan. 6, 2012, 2:01 p.m.
From: Marcelo Tosatti <mtosatti@redhat.com>

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 qerror.c |    4 ++++
 qerror.h |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/qerror.c b/qerror.c
index feb3d35..42f5fc2 100644
--- a/qerror.c
+++ b/qerror.c
@@ -276,6 +276,10 @@  static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_INVALID_PARAMETER_COMBINATION,
         .desc      = "Invalid parameter combination",
     },
+    {
+        .error_fmt = QERR_BASE_ID_NOT_FOUND,
+        .desc      = "The base id %(base_id) has not been found",
+    },
     {}
 };
 
diff --git a/qerror.h b/qerror.h
index 095ba9d..50304c7 100644
--- a/qerror.h
+++ b/qerror.h
@@ -225,4 +225,7 @@  QError *qobject_to_qerror(const QObject *obj);
 #define QERR_INVALID_PARAMETER_COMBINATION \
     "{ 'class': 'InvalidParameterCombination', 'data': {} }"
 
+#define QERR_BASE_ID_NOT_FOUND \
+    "{ 'class': 'BaseIdNotFound', 'data': { 'base_id': %s } }"
+
 #endif /* QERROR_H */