jdl-api-cpp-3.4.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ManipulationExceptions.h
Go to the documentation of this file.
1 /*
2 Copyright (c) Members of the EGEE Collaboration. 2004.
3 See http://www.eu-egee.org/partners/ for details on the
4 copyright holders.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15 either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 */
19 
20 #ifndef GLITE_WMS_COMMON_REQUESTAD_MANIPULATIONEXCEPTIONS_H
21 #define GLITE_WMS_COMMON_REQUESTAD_MANIPULATIONEXCEPTIONS_H
22 
23 #include <string>
24 #include <exception>
25 
26 namespace glite {
27 namespace jdl {
28 
29 class ManipulationException : public std::exception {
30 public:
31  explicit ManipulationException( const std::string &parameter );
32  virtual ~ManipulationException( void ) throw();
33 
34  inline std::string parameter( void ) const { return this->me_parameter; }
35 
36  virtual const char *what( void ) const throw();
37  virtual std::string reason( void ) const;
38 
39 protected:
40  std::string me_parameter;
41 
42 private:
43  mutable std::string me_reason;
44 };
45 
47 public:
48  explicit CannotGetAttribute( const std::string &parameter );
49  virtual ~CannotGetAttribute( void ) throw();
50 
51  virtual std::string reason( void ) const;
52 };
53 
55 public:
56  explicit CannotSetAttribute( const std::string &parameter );
57  virtual ~CannotSetAttribute( void ) throw();
58 
59  virtual std::string reason( void ) const;
60 };
61 
63 public:
64  explicit CannotRemoveAttribute( const std::string &parameter );
65  virtual ~CannotRemoveAttribute( void ) throw();
66 
67  virtual std::string reason( void ) const;
68 };
69 
70 } // jdl namespace
71 } // glite namespace
72 
73 #endif /* GLITE_WMS_COMMON_REQUESTAD_MANIPULATIONEXCEPTIONS_H */
74 
75 // Local Variables:
76 // mode: c++
77 // End:
virtual const char * what(void) const
std::string me_parameter
Definition: ManipulationExceptions.h:40
Definition: ManipulationExceptions.h:62
Definition: ManipulationExceptions.h:54
ManipulationException(const std::string &parameter)
std::string parameter(void) const
Definition: ManipulationExceptions.h:34
Definition: ManipulationExceptions.h:29
Definition: ManipulationExceptions.h:46
virtual std::string reason(void) const