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// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_XMLPARAMETERLISTEXCEPTIONS_HPP_
11#define TEUCHOS_XMLPARAMETERLISTEXCEPTIONS_HPP_
12
17#include <stdexcept>
18
19namespace Teuchos {
20
25class CantFindParameterEntryConverterException : public std::logic_error{
26
27public:
28
34 CantFindParameterEntryConverterException(const std::string& what_arg):std::logic_error(what_arg){}
35
36};
37
43class DuplicateValidatorIDsException : public std::logic_error{
44
45public:
46
52 DuplicateValidatorIDsException(const std::string& what_arg):std::logic_error(what_arg){}
53
54};
55
59class DuplicateParameterIDsException : public std::logic_error{
60
61public:
62
68 DuplicateParameterIDsException(const std::string& what_arg):std::logic_error(what_arg){}
69
70};
71
75class BadValidatorXMLConverterException : public std::logic_error{
76
77public:
83 BadValidatorXMLConverterException(const std::string& what_arg):std::logic_error(what_arg){}
84
85};
86
87
92class CantFindValidatorConverterException : public std::logic_error{
93
94public:
100 CantFindValidatorConverterException(const std::string& what_arg):std::logic_error(what_arg){}
101
102};
103
104
109class BadParameterEntryXMLConverterTypeException : public std::logic_error{
110
111public:
112
118 BadParameterEntryXMLConverterTypeException(const std::string& what_arg):std::logic_error(what_arg){}
119
120};
121
122
123
127class NoValueAttributeExecption : public std::logic_error{
128public:
134 NoValueAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
135};
136
137
141class NoTypeAttributeExecption : public std::logic_error{
142public:
148 NoTypeAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
149};
150
154class NoNameAttributeExecption : public std::logic_error{
155public:
161 NoNameAttributeExecption(const std::string& what_arg):std::logic_error(what_arg){}
162};
163
167class BadParameterListElementException : public std::logic_error{
168public:
174 BadParameterListElementException(const std::string& what_arg):std::logic_error(what_arg){}
175};
176
180class BadXMLParameterListRootElementException : public std::logic_error{
181public:
187 BadXMLParameterListRootElementException(const std::string& what_arg):std::logic_error(what_arg){}
188};
189
193class MissingValidatorDefinitionException : public std::logic_error{
194public:
201 const std::string& what_arg):std::logic_error(what_arg){}
202};
203
207class MissingParameterEntryDefinitionException : public std::logic_error{
208public:
215 const std::string& what_arg):std::logic_error(what_arg){}
216};
217
222class BadTagException : public std::logic_error{
223public:
229 BadTagException(const std::string& what_arg):std::logic_error(what_arg){}
230};
231
232
233} // namespace Teuchos
234#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,...