Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_XMLDependencyExceptions.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Teuchos: Common Tools Package
5 // Copyright (2004) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38 //
39 // ***********************************************************************
40 // @HEADER
41 
42 
43 #ifndef TEUCHOS_XMLDEPENDENCYEXCEPTIONS_HPP_
44 #define TEUCHOS_XMLDEPENDENCYEXCEPTIONS_HPP_
45 
51 #include <stdexcept>
52 
53 namespace Teuchos {
54 
58 class MissingDependeeException : public std::logic_error{
59 
60 public:
61 
68  const std::string& what_arg):std::logic_error(what_arg){}
69 
70 };
71 
75 class MissingDependentException : public std::logic_error{
76 
77 public:
78 
85  const std::string& what_arg):std::logic_error(what_arg){}
86 
87 };
88 
92 class MissingDependeesException : public std::logic_error{
93 
94 public:
95 
102  const std::string& what_arg):std::logic_error(what_arg){}
103 
104 };
105 
109 class MissingDependentsException : public std::logic_error{
110 
111 public:
112 
119  const std::string& what_arg):std::logic_error(what_arg){}
120 
121 };
122 
126 class TooManyDependeesException : public std::logic_error{
127 
128 public:
129 
136  const std::string& what_arg):std::logic_error(what_arg){}
137 
138 };
139 
143 class ValuesTagMissingException : public std::logic_error{
144 
145 public:
146 
153  const std::string& what_arg):std::logic_error(what_arg){}
154 
155 };
156 
160 class MissingRangesAndValidatorsTagException : public std::logic_error{
161 
162 public:
163 
170  const std::string& what_arg):std::logic_error(what_arg){}
171 
172 };
173 
174 
178 class MissingValuesAndValidatorsTagException : public std::logic_error{
179 
180 public:
181 
188  const std::string& what_arg):std::logic_error(what_arg){}
189 
190 };
191 
195 class MissingConditionTagException : public std::logic_error{
196 
197 public:
198 
205  const std::string& what_arg):std::logic_error(what_arg){}
206 
207 };
208 
212 class MissingValidatorException : public std::logic_error{
213 
214 public:
215 
222  const std::string& what_arg):std::logic_error(what_arg){}
223 
224 };
225 
226 
228 class CantFindDependencyConverterException : public std::logic_error{
229 
230 public:
231 
238  const std::string& what_arg):std::logic_error(what_arg){}
239 
240 };
241 
242 
243 
244 } // namespace Teuchos
245 #endif //TEUCHOS_XMLDEPENDENCYEXCEPTIONS_HPP_
Thrown when no dependes of a dependency can&#39;t be found when converting the dependency to or from XML...
MissingDependeeException(const std::string &what_arg)
Constructs an MissingDependeeException.
Thrown when a StringVisualDependency is being converted from XML and no Values tag is found...
MissingDependentException(const std::string &what_arg)
Constructs an MissingDependentException.
ValuesTagMissingException(const std::string &what_arg)
Constructs an ValuesTagMissingException.
CantFindDependencyConverterException(const std::string &what_arg)
Constructs an CantFindDependencyConverterException.
Thrown when a dependent of a dependency cant be found when converting the dependency to or from XML...
MissingRangesAndValidatorsTagException(const std::string &what_arg)
Constructs an MissingRangesAndValidatorsTagException.
MissingDependeesException(const std::string &what_arg)
Constructs an MissingDependeesException.
Thrown when no dependents of a dependency are specified when converting the dependency from XML...
MissingValuesAndValidatorsTagException(const std::string &what_arg)
Constructs an MissingValuesAndValidatorsTagException.
MissingDependentsException(const std::string &what_arg)
Constructs an MissingDependentsException.
Thrown when the rangesAndValidators tag for the RangeValidatorDepencyConverter can&#39;t be found...
MissingValidatorException(const std::string &what_arg)
Constructs an MissingValidatorException.
Thrown when a Dependency has too many dependees specified in its XML.
TooManyDependeesException(const std::string &what_arg)
Constructs an TooManyDependeesException.
Thrown when converting a StrinvValidatorDependcny from XML and no valuesAndValidators tag is found...
Thrown when converting a dependency that has validaotrs to and from XML. This excetpion indicates tha...
Thrown when no condtion tag is found when converting a ConditionVisualDependency from XML...
MissingConditionTagException(const std::string &what_arg)
Constructs an MissingConditionTagException.
Thrown when no dependess of a dependency are specified when converting the dependency from XML...
Thrown when an appropriate Dependency Converter can&#39;t be found.