Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_ParameterListExceptions.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_PARAMETER_LIST_EXCEPTIONS_H
11 #define TEUCHOS_PARAMETER_LIST_EXCEPTIONS_H
12 
13 #include "Teuchos_ConfigDefs.hpp"
14 
15 namespace Teuchos {
16 
17 namespace Exceptions {
18 
22 class InvalidArgument : public std::invalid_argument
23 {public: InvalidArgument(const std::string& what_arg) : std::invalid_argument(what_arg) {}};
24 
28 class InvalidParameter : public std::logic_error
29 {public: InvalidParameter(const std::string& what_arg) : std::logic_error(what_arg) {}};
30 
35 {public: InvalidParameterName(const std::string& what_arg) : InvalidParameter(what_arg) {}};
36 
41 {public: InvalidParameterType(const std::string& what_arg) : InvalidParameter(what_arg) {}};
42 
47 {public: InvalidParameterValue(const std::string& what_arg) : InvalidParameter(what_arg) {}};
48 
49 } // namespace Exceptions
50 
51 } // end of Teuchos namespace
52 
53 #endif // TEUCHOS_PARAMETER_LIST_EXCEPTIONS_H
54 
55 
Teuchos header file which uses auto-configuration information to include necessary C++ headers...