2 * $Header: /cvsroot/pgpool/pgpool-II/pcp/pcp_error.c,v 1.2 2008/01/29 01:56:38 y-asaba Exp $
4 * pgpool: a language independent connection pool server for PostgreSQL
5 * written by Tatsuo Ishii
7 * Copyright (c) 2003-2008 PgPool Global Development Group
9 * Permission to use, copy, modify, and distribute this software and
10 * its documentation for any purpose and without fee is hereby
11 * granted, provided that the above copyright notice appear in all
12 * copies and that both that copyright notice and this permission
13 * notice appear in supporting documentation, and that the name of the
14 * author not be used in advertising or publicity pertaining to
15 * distribution of the software without specific, written prior
16 * permission. The author makes no representations about the
17 * suitability of this software for any purpose. It is provided "as
18 * is" without express or implied warranty.
20 * Handles errors occured in PCP modules.
30 pcp_errorstr(ErrorCode e)
35 fprintf(stdout, "EOFError\n");
39 fprintf(stdout, "NoMemoryError\n");
43 fprintf(stdout, "ReadError\n");
47 fprintf(stdout, "WriteError\n");
51 fprintf(stdout, "TimeoutError\n");
55 fprintf(stdout, "InvalidArgumentError\n");
59 fprintf(stdout, "ConnectionError\n");
63 fprintf(stdout, "NoConnectionError\n");
67 fprintf(stdout, "SocketError\n");
71 fprintf(stdout, "HostError\n");
75 fprintf(stdout, "BackendError\n");
79 fprintf(stdout, "AuthorizationError\n");
84 fprintf(stdout, "UnknownError\n");