summaryrefslogtreecommitdiff
path: root/mailbox
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-12-06 14:03:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-12-06 14:03:04 +0000
commit77ad7a6b479bf2b417b182d95084837b3a4249fb (patch)
tree6a79eaeb905d23d82bfacabffd9253d9f3ecad88 /mailbox
parent32490c984eef8651bea59a37e65ea427c228d97c (diff)
downloadmailutils-77ad7a6b479bf2b417b182d95084837b3a4249fb.tar.gz
mailutils-77ad7a6b479bf2b417b182d95084837b3a4249fb.tar.bz2
Added new error codes
Diffstat (limited to 'mailbox')
-rw-r--r--mailbox/muerrno.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mailbox/muerrno.c b/mailbox/muerrno.c
index d5154a842..75e31120e 100644
--- a/mailbox/muerrno.c
+++ b/mailbox/muerrno.c
@@ -99,6 +99,15 @@ mu_errname (int e)
EN(MU_ERR_PARSE);
EN(MU_ERR_NOENT);
EN(MU_ERR_BUFSPACE);
+
+ EN(MU_ERR_SQL);
+ EN(MU_ERR_DB_ALREADY_CONNECTED);
+ EN(MU_ERR_DB_NOT_CONNECTED);
+ EN(MU_ERR_RESULT_NOT_RELEASED);
+ EN(MU_ERR_NO_QUERY);
+ EN(MU_ERR_BAD_COLUMN);
+ EN(MU_ERR_NO_RESULT);
+ EN(MU_ERR_NO_INTERFACE);
}
snprintf (buf, sizeof buf, _("Error %d"), e);
@@ -167,6 +176,16 @@ mu_strerror (int e)
ES(MU_ERR_PARSE, _("Parse error"));
ES(MU_ERR_NOENT, _("Requested item not found"));
ES(MU_ERR_BUFSPACE, _("Not enough buffer space"));
+
+ ES(MU_ERR_SQL, _("SQL error"));
+ ES(MU_ERR_DB_ALREADY_CONNECTED, _("Already connected to the database"));
+ ES(MU_ERR_DB_NOT_CONNECTED, _("Not connected to the database"));
+ ES(MU_ERR_RESULT_NOT_RELEASED, _("Result of the previous query is not released"));
+ ES(MU_ERR_NO_QUERY, _("No query was executed"));
+ ES(MU_ERR_BAD_COLUMN, _("Bad column address"));
+ ES(MU_ERR_NO_RESULT, _("No result from the previous query available"));
+
+ ES(MU_ERR_NO_INTERFACE, _("No such interface"));
}
return msg ? msg : strerror (e);

Return to:

Send suggestions and report system problems to the System administrator.