/* LICENSE: Copyright (c) Members of the EGEE Collaboration. 2010. See http://www.eu-egee.org/partners/ for details on the copyright holders. 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. END LICENSE */ #ifndef _GLITE_CE_CREAM_CLIENT_API_CREAMEX_DELEGEX_H_ #define _GLITE_CE_CREAM_CLIENT_API_CREAMEX_DELEGEX_H_ #include #include namespace glite { namespace ce { namespace cream_client_api { namespace cream_exceptions { /// An object of this class is raised as an exception when the remote Delegation Web Service sends back a delegation fault to the client as result of a proxy delegation request class DelegationException : public std::exception { std::string m_error_message; public: enum { DelegNum1 = 9, DelegNum2 = 36 }; DelegationException(const std::string& err_info) : m_error_message(err_info) {} virtual ~DelegationException() throw() {} virtual const char* what() const throw() { return m_error_message.c_str(); } }; } } } } #endif