globus_gram_jobmanager_callout_error.h
Go to the documentation of this file.
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_H
#define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_H
#include "globus_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE (&globus_i_gram_jobmanager_callout_error_module)
extern
globus_module_descriptor_t globus_i_gram_jobmanager_callout_error_module;
typedef enum
{
GLOBUS_GRAM_JOBMANAGER_CALLOUT_BAD_CREDS = 0,
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_SYSTEM_ERROR = 1,
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED = 2,
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_INVALID_JOB = 3,
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_BAD_EXECUTABLE = 4,
GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_LAST = 5
}
globus_gram_jobmanager_callout_error_t;
extern char * globus_i_gram_jobmanager_callout_error_strings[];
#define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR(__RESULT, __TYPE, __ERRSTR) \
{ \
char * _tmp_str_ = \
globus_common_create_string __ERRSTR; \
(__RESULT) = globus_error_put( \
globus_error_construct_error( \
GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE, \
(__RESULT) ? globus_error_get(__RESULT) : NULL, \
__TYPE, \
__FILE__, \
"GRAM Authorization Callout", \
__LINE__, \
"%s%s%s", \
globus_i_gram_jobmanager_callout_error_strings[__TYPE], \
_tmp_str_ ? ": " : "", \
_tmp_str_ ? _tmp_str_ : "")); \
if(_tmp_str_) free(_tmp_str_); \
}
#ifdef __cplusplus
}
#endif
#endif
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_INVALID_JOB
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_INVALID_JOB
Definition: globus_gram_jobmanager_callout_error.h:101
GLOBUS_GRAM_JOBMANAGER_CALLOUT_BAD_CREDS
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_BAD_CREDS
Definition: globus_gram_jobmanager_callout_error.h:95
globus_gram_jobmanager_callout_error_t
globus_gram_jobmanager_callout_error_t
Definition: globus_gram_jobmanager_callout_error.h:93
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED
Definition: globus_gram_jobmanager_callout_error.h:99
GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_LAST
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_LAST
Definition: globus_gram_jobmanager_callout_error.h:105
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_BAD_EXECUTABLE
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_BAD_EXECUTABLE
Definition: globus_gram_jobmanager_callout_error.h:103
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_SYSTEM_ERROR
@ GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_SYSTEM_ERROR
Definition: globus_gram_jobmanager_callout_error.h:97