Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_XMLParameterListExceptions.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_XMLPARAMETERLISTEXCEPTIONS_HPP_
44 #define TEUCHOS_XMLPARAMETERLISTEXCEPTIONS_HPP_
45 
50 #include <stdexcept>
51 
52 namespace Teuchos {
53 
58 class CantFindParameterEntryConverterException : public std::logic_error{
59 
60 public:
61 
67  CantFindParameterEntryConverterException(const std::string& what_arg):std::logic_error(what_arg){}
68 
69 };
70 
76 class DuplicateValidatorIDsException : public std::logic_error{
77 
78 public:
79 
85  DuplicateValidatorIDsException(const std::string& what_arg):std::logic_error(what_arg){}
86 
87 };
88 
92 class DuplicateParameterIDsException : public std::logic_error{
93 
94 public:
95 
101  DuplicateParameterIDsException(const std::string& what_arg):std::logic_error(what_arg){}
102 
103 };
104 
108 class BadValidatorXMLConverterException : public std::logic_error{
109 
110 public:
116  BadValidatorXMLConverterException(const std::string& what_arg):std::logic_error(what_arg){}
117 
118 };
119 
120 
125 class CantFindValidatorConverterException : public std::logic_error{
126 
127 public:
133  CantFindValidatorConverterException(const std::string& what_arg):std::logic_error(what_arg){}
134 
135 };
136 
137 
142 class BadParameterEntryXMLConverterTypeException : public std::logic_error{
143 
144 public:
145 
151  BadParameterEntryXMLConverterTypeException(const std::string& what_arg):std::logic_error(what_arg){}
152 
153 };
154 
155 
156 
160 class NoValueAttributeExecption : public std::logic_error{
161 public:
167  NoValueAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
168 };
169 
170 
174 class NoTypeAttributeExecption : public std::logic_error{
175 public:
181  NoTypeAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
182 };
183 
187 class NoNameAttributeExecption : public std::logic_error{
188 public:
194  NoNameAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
195 };
196 
200 class BadParameterListElementException : public std::logic_error{
201 public:
207  BadParameterListElementException(const std::string& what_arg):std::logic_error(what_arg){}
208 };
209 
213 class BadXMLParameterListRootElementException : public std::logic_error{
214 public:
220  BadXMLParameterListRootElementException(const std::string& what_arg):std::logic_error(what_arg){}
221 };
222 
226 class MissingValidatorDefinitionException : public std::logic_error{
227 public:
234  const std::string& what_arg):std::logic_error(what_arg){}
235 };
236 
240 class MissingParameterEntryDefinitionException : public std::logic_error{
241 public:
248  const std::string& what_arg):std::logic_error(what_arg){}
249 };
250 
255 class BadTagException : public std::logic_error{
256 public:
262  BadTagException(const std::string& what_arg):std::logic_error(what_arg){}
263 };
264 
265 
266 } // namespace Teuchos
267 #endif //TEUCHOS_XMLPARAMETERLISTEXCEPTIONS_HPP_
BadTagException(const std::string &what_arg)
Constructs a MissingValidatorDefinitionException.
BadValidatorXMLConverterException(const std::string &what_arg)
Constructs an BadValidatorXMLConverterException.
Thrown when a parameter entry tag is missing it&#39;s value attribute.
MissingValidatorDefinitionException(const std::string &what_arg)
Constructs a MissingValidatorDefinitionException.
Thrown when a converter is being used to convert either and XML tag or ParameterEntry with an innappr...
MissingParameterEntryDefinitionException(const std::string &what_arg)
Constructs a MissingParameterEntryDefinitionException.
Thrown when a referenced ParameterEntry can&#39;t be found.
Thrown when a parameter entry tag is missing it&#39;s name attribute.
Thrown when the ValidatorXMLConverterDB can&#39;t find an appropriate converter.
Thrown when an appropriate ParameterEntryXMLConverter can&#39;t be found.
BadXMLParameterListRootElementException(const std::string &what_arg)
Constructs a BadXMLParameterListRootElementException.
Thrown when an element inside a parameter list is bad.
DuplicateParameterIDsException(const std::string &what_arg)
Constructs an DuplicateParameterIDsException.
BadParameterEntryXMLConverterTypeException(const std::string &what_arg)
Constructs a BadParmaeterEntryXMLConverterTypeException.
Thrown when a parameter entry tag is missing it&#39;s type attribute.
Thrown when the root xml tag for a parameter list is incorrect.
Thrown when two parameters in an XML file have the same ID.
CantFindValidatorConverterException(const std::string &what_arg)
Constructs a CantFindValidatorConverterException.
Constructs a CantFindParameterEntryConverterException.
NoTypeAttributeExecption(const std::string &what_arg)
Constructs a NoTypeAttributeExecption.
Thrown when xml tag is encountered that is either unrecognized or inappropriate for a given context...
BadParameterListElementException(const std::string &what_arg)
Constructs a BadParameterListElementException.
DuplicateValidatorIDsException(const std::string &what_arg)
Constructs an DuplicateValidatorIDsException.
CantFindParameterEntryConverterException(const std::string &what_arg)
Constructs an CantFindParameterEntryConverterException.
NoNameAttributeExecption(const std::string &what_arg)
Constructs a NoNameAttributeExecption.
Thrown when a bad validator xml converter is used.
Thrown when a referenced validator can&#39;t be found.
NoValueAttributeExecption(const std::string &what_arg)
Constructs a NoValueAttributeExecption.