Grid Community Toolkit  6.2.1566487665 (tag: v6.2.20190829)
globus_error_string.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef GLOBUS_ERROR_STRING_H
23 #define GLOBUS_ERROR_STRING_H
24 
25 #include "globus_common_include.h"
26 #include "globus_error.h"
27 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 extern const globus_object_type_t GLOBUS_ERROR_TYPE_STRING_DEFINITION;
34 
35 #define GLOBUS_ERROR_TYPE_STRING (&GLOBUS_ERROR_TYPE_STRING_DEFINITION)
36 
37 /* allocate and initialize an error of type
38  * GLOBUS_ERROR_TYPE_STRING
39  */
40 extern globus_object_t *
42  globus_module_descriptor_t * base_source,
43  globus_object_t * base_cause,
44  const char * fmt,
45  ...);
46 
47 /* initialize and return an error of type
48  * GLOBUS_ERROR_TYPE_STRING
49  */
50 extern globus_object_t *
51 globus_error_initialize_string(
52  globus_object_t * error,
53  globus_module_descriptor_t * base_source,
54  globus_object_t * base_cause,
55  const char * fmt,
56  va_list ap);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* GLOBUS_ERROR_STRING_H */
globus_object_t * globus_error_construct_string(globus_module_descriptor_t *base_source, globus_object_t *base_cause, const char *fmt,...)
Definition: globus_error_string.c:31
Globus Error Handling.
Include System Headers.
Module Descriptor.
Definition: globus_module.h:71