Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_Exceptions.hpp
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_EXCEPTIONS_HPP
11#define TEUCHOS_EXCEPTIONS_HPP
12
13
15
16
17namespace Teuchos {
18
19
24class ExceptionBase : public std::logic_error
25{public:ExceptionBase(const std::string& what_arg) : std::logic_error(what_arg) {}};
26// 2007/11/07: rabartl: Above, I had to change the name from Exception to
27// ExceptionBase because Marzio did a 'using namespace Teuchos' and then he
28// declared his own Exception class. The file Laplacian3D.cpp failed to
29// compile. STOP DOING USING NAMESPACE BLAH!!!!!!
30
31
38
39
45{public:NullReferenceError(const std::string& what_arg) : ExceptionBase(what_arg) {}};
46
47
53{public:NonconstAccessError(const std::string& what_arg) : ExceptionBase(what_arg) {}};
54
55
61{public:RangeError(const std::string& what_arg) : ExceptionBase(what_arg) {}};
62
63
70
71
78
86
87public:
88 DuplicateParameterSublist(const std::string& what_arg):
90
91};
92
100
101public:
102 DuplicateParameterEntryException(const std::string& what_arg):
104
105};
106
113
114public:
117
118};
119
126
127public:
128 DuplicateValidatorIDException(const std::string& what_arg):
130
131};
132
143
144public:
145 NonprintableTypeException(const std::string& what_arg) :
147
148};
149
150
151
152} // end namespace Teuchos
153
154
155#endif // TEUCHOS_EXCEPTIONS_HPP
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
Dangling reference error exception class.
Thrown if a duplicate owning RCP is creatd the the same object.
Thrown when a Parameter Entry that is already being tracked is attempted to be inserted again into th...
Thrown when a Parameter Entry ID that is already being used is attempted to be reused again.
Optionally thrown when a sublist is set twice by either updateParametersFromXmlFile(),...
Thrown when a ParameterEntryValidatorID that is already being used is attempted to be reused again.
Base exception class for Teuchos.
Incompatiable iterators error exception class.
Null reference error exception class.
Exception class for non-printable parameter types, such as enum class/std::vector and many more which...
Null reference error exception class.
Smart reference counting pointer class for automatic garbage collection.
Range error exception class.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...