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