SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
resource
query
BadTypeError.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_resource_query_BadTypeError_h
12
#define smtk_resource_query_BadTypeError_h
13
14
#include "smtk/CoreExports.h"
15
#include "smtk/SystemConfig.h"
16
17
#include "
smtk/common/TypeName.h
"
18
19
#include <stdexcept>
20
21
namespace
smtk
22
{
23
namespace
resource
24
{
25
namespace
query
26
{
34
class
SMTKCORE_EXPORT
BadTypeError
:
public
std::out_of_range
35
{
36
public
:
37
BadTypeError
(
const
std::string&
typeName
)
38
: std::out_of_range(
"Type \""
+
typeName
+
"\" not available in this container"
)
39
{
40
}
41
};
42
}
// namespace query
43
}
// namespace resource
44
}
// namespace smtk
45
46
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::resource::query::BadTypeError
An exception to throw when a type is requested that does not exist in a container.
Definition:
BadTypeError.h:34
TypeName.h
Named type functions.
smtk::common::typeName
std::string typeName()
Return the name of a class.
Definition:
TypeName.h:289
Generated by
1.8.17