Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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
53namespace Teuchos {
54
58class MissingDependeeException : public std::logic_error{
59
60public:
61
68 const std::string& what_arg):std::logic_error(what_arg){}
69
70};
71
75class MissingDependentException : public std::logic_error{
76
77public:
78
85 const std::string& what_arg):std::logic_error(what_arg){}
86
87};
88
92class MissingDependeesException : public std::logic_error{
93
94public:
95
102 const std::string& what_arg):std::logic_error(what_arg){}
103
104};
105
109class MissingDependentsException : public std::logic_error{
110
111public:
112
119 const std::string& what_arg):std::logic_error(what_arg){}
120
121};
122
126class TooManyDependeesException : public std::logic_error{
127
128public:
129
136 const std::string& what_arg):std::logic_error(what_arg){}
137
138};
139
143class ValuesTagMissingException : public std::logic_error{
144
145public:
146
153 const std::string& what_arg):std::logic_error(what_arg){}
154
155};
156
160class MissingRangesAndValidatorsTagException : public std::logic_error{
161
162public:
163
170 const std::string& what_arg):std::logic_error(what_arg){}
171
172};
173
174
178class MissingValuesAndValidatorsTagException : public std::logic_error{
179
180public:
181
188 const std::string& what_arg):std::logic_error(what_arg){}
189
190};
191
195class MissingConditionTagException : public std::logic_error{
196
197public:
198
205 const std::string& what_arg):std::logic_error(what_arg){}
206
207};
208
212class MissingValidatorException : public std::logic_error{
213
214public:
215
222 const std::string& what_arg):std::logic_error(what_arg){}
223
224};
225
226
228class CantFindDependencyConverterException : public std::logic_error{
229
230public:
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 an appropriate Dependency Converter can't be found.
CantFindDependencyConverterException(const std::string &what_arg)
Constructs an CantFindDependencyConverterException.
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 dependes of a dependency can't be found when converting the dependency to or from XML.
MissingDependeeException(const std::string &what_arg)
Constructs an MissingDependeeException.
Thrown when no dependess of a dependency are specified when converting the dependency from XML.
MissingDependeesException(const std::string &what_arg)
Constructs an MissingDependeesException.
Thrown when a dependent of a dependency cant be found when converting the dependency to or from XML.
MissingDependentException(const std::string &what_arg)
Constructs an MissingDependentException.
Thrown when no dependents of a dependency are specified when converting the dependency from XML.
MissingDependentsException(const std::string &what_arg)
Constructs an MissingDependentsException.
Thrown when the rangesAndValidators tag for the RangeValidatorDepencyConverter can't be found.
MissingRangesAndValidatorsTagException(const std::string &what_arg)
Constructs an MissingRangesAndValidatorsTagException.
Thrown when converting a dependency that has validaotrs to and from XML. This excetpion indicates tha...
MissingValidatorException(const std::string &what_arg)
Constructs an MissingValidatorException.
Thrown when converting a StrinvValidatorDependcny from XML and no valuesAndValidators tag is found.
MissingValuesAndValidatorsTagException(const std::string &what_arg)
Constructs an MissingValuesAndValidatorsTagException.
Concrete serial communicator subclass.
Thrown when a Dependency has too many dependees specified in its XML.
TooManyDependeesException(const std::string &what_arg)
Constructs an TooManyDependeesException.
Thrown when a StringVisualDependency is being converted from XML and no Values tag is found.
ValuesTagMissingException(const std::string &what_arg)
Constructs an ValuesTagMissingException.