error: New QERR_BUS_NOT_FOUND

This commit is contained in:
Markus Armbruster 2010-02-19 18:05:39 +01:00
parent fc98eb430e
commit 7bbd823701
2 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,10 @@ static const QType qerror_type = {
* "running out of foo: %(foo)%%"
*/
static const QErrorStringTable qerror_table[] = {
{
.error_fmt = QERR_BUS_NOT_FOUND,
.desc = "Bus '%(bus)' not found",
},
{
.error_fmt = QERR_COMMAND_NOT_FOUND,
.desc = "The command %(name) has not been found",

View File

@ -42,6 +42,9 @@ QError *qobject_to_qerror(const QObject *obj);
/*
* QError class list
*/
#define QERR_BUS_NOT_FOUND \
"{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"