File: csinkerr.c

package info (click to toggle)
entity 0.7.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,352 kB
  • ctags: 5,272
  • sloc: ansic: 61,707; sh: 7,921; makefile: 732; perl: 399
file content (46 lines) | stat: -rw-r--r-- 1,988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "csink.h"

CSink_Error csink_error_internal_error = {
    "INTERNAL", "An internal error - please file a bug report."
};

CSink_Error csink_error_table[] = {
    {"NONE", "No error has occured."},

    /* Errors the user should handle */
    {"CONNECT_FAILURE", "Connection attempt failed."},
    {"DISCONN_WRITE", "Attempt to write to an unconnected sink."},    

    /* Socket Errors */    
    {"NO_SOCKET", "?"},
    {"SOCKET_CREATE_FAILED", "Unable to create a socket for communication"},
    {"SEND_PIPE", "Socket connection was broken"},
    {"SEND_EMSGSIZE", "Message too large to send"},
    {"EBADF", "Internal error: tried to use bad file descriptor"},
    {"ENOPROTOOPT", "Internal error: Can't check socket option"},
    {"ENOTSOCK", "Internal error: tried to use wrong file descriptor"},
    {"EADDRNOTAVAIL", "Requested interface/port combination is not available"},
    {"EADDRINUSE", "Requested interface/port combination is already taken"},
    {"EINVAL", "\"Socket already has an address\" (EINVAL)"},
    {"EACCES", "You don't have permission to use that interface or port"},
    {"EOPNOTSUPP", "Tried to listen on a socket that doesn not support it"},

    /* Inet Errors */
    {"DNS_LOOKUP_FAILED", "Failed to lookup hostname"},

    /* SSL Errors */
    {"SSL_NO_SEED", "SSL: Not able to seed random number generator"},
    {"SSL_NO_CERT", "SSL: No certificate was specified."},
    {"SSL_BAD_CERT", "SSL: Certificate was not accepted."},
    {"SSL_PROTOCOL", "SSL: Protocol error, can't continue."},
    {"SSL_ERROR", "SSL: Error writing to the ssl socket."},
    {"SSL_HANDSHAKE", "SSL: Unable to negotiate a connection."},

    /* Internal Errors */
    {"IMPLEMENTATION_DEFAULTCALL", "Internal error: misimplemented sink."},
    {"IMPLEMENTATION_BUG", "Internal error: impossible situation detected."},
    {"INTERNAL", "Internal error: (no further information)"},
    {"UNKNOWN", "Internal error: Unknown syscall result."},
    
    {NULL, NULL},
};