VTK-m  2.0
ErrorBadType.h
Go to the documentation of this file.
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 #ifndef vtk_m_cont_ErrorBadType_h
11 #define vtk_m_cont_ErrorBadType_h
12 
13 #include <vtkm/cont/Error.h>
14 
15 namespace vtkm
16 {
17 namespace cont
18 {
19 
21 
26 {
27 public:
28  ErrorBadType(const std::string& message)
29  : Error(message, true)
30  {
31  }
32 };
33 
35 
40 //
41 VTKM_CONT_EXPORT void throwFailedDynamicCast(const std::string& baseType,
42  const std::string& derivedType);
43 }
44 } // namespace vtkm::cont
45 
46 #endif //vtk_m_cont_ErrorBadType_h
VTKM_SILENCE_WEAK_VTABLE_WARNING_START
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:119
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_SILENCE_WEAK_VTABLE_WARNING_END
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:120
vtkm::cont::ErrorBadType::ErrorBadType
ErrorBadType(const std::string &message)
Definition: ErrorBadType.h:28
vtkm::cont::Error
The superclass of all exceptions thrown by any VTKm function or method.
Definition: Error.h:33
vtkm::cont::ErrorBadType
This class is thrown when VTK-m encounters data of a type that is incompatible with the current opera...
Definition: ErrorBadType.h:25
vtkm::cont::throwFailedDynamicCast
VTKM_SILENCE_WEAK_VTABLE_WARNING_END VTKM_CONT_EXPORT void throwFailedDynamicCast(const std::string &baseType, const std::string &derivedType)
Throws an ErrorBadType exception with the following message: Cast failed: baseType --> derivedType".
Error.h
VTKM_ALWAYS_EXPORT
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92