Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apreq_error.h
Go to the documentation of this file.
1 /*
2 ** Licensed to the Apache Software Foundation (ASF) under one or more
3 ** contributor license agreements. See the NOTICE file distributed with
4 ** this work for additional information regarding copyright ownership.
5 ** The ASF licenses this file to You under the Apache License, Version 2.0
6 ** (the "License"); you may not use this file except in compliance with
7 ** the License. You may obtain a copy of the License at
8 **
9 ** http://www.apache.org/licenses/LICENSE-2.0
10 **
11 ** Unless required by applicable law or agreed to in writing, software
12 ** distributed under the License is distributed on an "AS IS" BASIS,
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ** See the License for the specific language governing permissions and
15 ** limitations under the License.
16 */
17 
18 #ifndef APREQ_ERROR_H
19 #define APREQ_ERROR_H
20 
21 #include "apr_errno.h"
22 #include "apreq.h"
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
33  char *buf,
34  apr_size_t bufsize);
35 
44 #ifndef APR_EBADARG
45 
49 #define APR_EBADARG APR_BADARG /* XXX: don't use APR_BADARG */
50 #endif
51 
53 #define APREQ_ERROR_GENERAL APR_OS_START_USERERR
54 
55 #define APREQ_ERROR_TAINTED (APREQ_ERROR_GENERAL + 1)
56 
57 #define APREQ_ERROR_INTERRUPT (APREQ_ERROR_GENERAL + 2)
58 
60 #define APREQ_ERROR_BADDATA (APREQ_ERROR_GENERAL + 10)
61 
62 #define APREQ_ERROR_BADCHAR (APREQ_ERROR_BADDATA + 1)
63 
64 #define APREQ_ERROR_BADSEQ (APREQ_ERROR_BADDATA + 2)
65 
66 #define APREQ_ERROR_BADATTR (APREQ_ERROR_BADDATA + 3)
67 
68 #define APREQ_ERROR_BADHEADER (APREQ_ERROR_BADDATA + 4)
69 
70 #define APREQ_ERROR_BADUTF8 (APREQ_ERROR_BADDATA + 5)
71 
73 #define APREQ_ERROR_NODATA (APREQ_ERROR_GENERAL + 20)
74 
75 #define APREQ_ERROR_NOTOKEN (APREQ_ERROR_NODATA + 1)
76 
77 #define APREQ_ERROR_NOATTR (APREQ_ERROR_NODATA + 2)
78 
79 #define APREQ_ERROR_NOHEADER (APREQ_ERROR_NODATA + 3)
80 
81 #define APREQ_ERROR_NOPARSER (APREQ_ERROR_NODATA + 4)
82 
83 
85 #define APREQ_ERROR_MISMATCH (APREQ_ERROR_GENERAL + 30)
86 
87 #define APREQ_ERROR_OVERLIMIT (APREQ_ERROR_MISMATCH + 1)
88 
89 #define APREQ_ERROR_UNDERLIMIT (APREQ_ERROR_MISMATCH + 2)
90 
91 #define APREQ_ERROR_NOTEMPTY (APREQ_ERROR_MISMATCH + 3)
92 
93 
94 #ifdef __cplusplus
95  }
96 #endif
97 
98 #endif /* APREQ_ERROR_H */
size_t apr_size_t
Definition: apr.h:375
#define APREQ_DECLARE(x)
Definition: macros.h:12
char * apreq_strerror(apr_status_t s, char *buf, apr_size_t bufsize)
APR Error Codes.
Main header file...Define the common data structures.
int apr_status_t
Definition: apr_errno.h:44