3 /* error - Error handling functions */
5 /* Authors: Martin Quinson */
6 /* Copyright (C) 2001,2002,2003,2004 the OURAGAN project. */
8 /* This program is free software; you can redistribute it and/or modify it
9 under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "gras_private.h"
16 * @Returns: the printable name of an error code
18 * usefull to do nice error repporting messages
21 const char *gras_error_name(gras_error_t errcode) {
25 case no_error: return "success";
26 case malloc_error: return "malloc";
27 case mismatch_error: return "mismatch";
28 case system_error: return "system";
29 case network_error: return "network";
30 case timeout_error: return "timeout";
31 case thread_error: return "thread";
32 case unknown_error: return "unclassified";
34 return "SEVERE ERROR in error repporting module";