• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

InkErrno.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   Error code defines
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022 
00023   @section details Details
00024 
00025   Contains all the errno codes that we may need (above and beyond those
00026   provided by /usr/include/errno.h)
00027 
00028 */
00029 
00030 #if !defined (_Errno_h_)
00031 #define _Errno_h_
00032 #include <errno.h>
00033 
00034 #define INK_START_ERRNO 20000
00035 
00036 #define SOCK_ERRNO                        INK_START_ERRNO
00037 #define NET_ERRNO                         INK_START_ERRNO+100
00038 #define CLUSTER_ERRNO                     INK_START_ERRNO+200
00039 #define CACHE_ERRNO                       INK_START_ERRNO+400
00040 #define HTTP_ERRNO                        INK_START_ERRNO+600
00041 
00042 #define ENET_THROTTLING                   (NET_ERRNO+1)
00043 #define ENET_CONNECT_TIMEOUT              (NET_ERRNO+2)
00044 #define ENET_CONNECT_FAILED               (NET_ERRNO+3)
00045 
00046 #define ESOCK_DENIED                      (SOCK_ERRNO+0)
00047 #define ESOCK_TIMEOUT                     (SOCK_ERRNO+1)
00048 #define ESOCK_NO_SOCK_SERVER_CONN         (SOCK_ERRNO+2)
00049 
00050 // Error codes for CLUSTER_EVENT_OPEN_FAILED
00051 #define ECLUSTER_NO_VC                    (CLUSTER_ERRNO+0)
00052 #define ECLUSTER_NO_MACHINE               (CLUSTER_ERRNO+1)
00053 #define ECLUSTER_OP_TIMEOUT               (CLUSTER_ERRNO+2)
00054 #define ECLUSTER_ORB_DATA_READ            (CLUSTER_ERRNO+3)
00055 #define ECLUSTER_ORB_EIO                  (CLUSTER_ERRNO+4)
00056 #define ECLUSTER_CHANNEL_INUSE            (CLUSTER_ERRNO+5)
00057 #define ECLUSTER_NOMORE_CHANNELS          (CLUSTER_ERRNO+6)
00058 
00059 #define ECACHE_NO_DOC                     (CACHE_ERRNO+0)
00060 #define ECACHE_DOC_BUSY                   (CACHE_ERRNO+1)
00061 #define ECACHE_DIR_BAD                    (CACHE_ERRNO+2)
00062 #define ECACHE_BAD_META_DATA              (CACHE_ERRNO+3)
00063 #define ECACHE_READ_FAIL                  (CACHE_ERRNO+4)
00064 #define ECACHE_WRITE_FAIL                 (CACHE_ERRNO+5)
00065 #define ECACHE_MAX_ALT_EXCEEDED           (CACHE_ERRNO+6)
00066 #define ECACHE_NOT_READY                  (CACHE_ERRNO+7)
00067 #define ECACHE_ALT_MISS                   (CACHE_ERRNO+8)
00068 #define ECACHE_BAD_READ_REQUEST           (CACHE_ERRNO+9)
00069 
00070 #define EHTTP_ERROR                       (HTTP_ERRNO+0)
00071 
00072 #endif

Generated by  doxygen 1.7.1