1 //============================================================================
2 //  Copyright (c) Kitware, Inc.
3 //  All rights reserved.
4 //  See LICENSE.txt for details.
5 //  This software is distributed WITHOUT ANY WARRANTY; without even
6 //  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
7 //  PURPOSE.  See the above copyright notice for more information.
8 //
9 //  Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
10 //  Copyright 2014 UT-Battelle, LLC.
11 //  Copyright 2014 Los Alamos National Security.
12 //
13 //  Under the terms of Contract DE-NA0003525 with NTESS,
14 //  the U.S. Government retains certain rights in this software.
15 //
16 //  Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
17 //  Laboratory (LANL), the U.S. Government retains certain rights in
18 //  this software.
19 //============================================================================
20 #ifndef vtk_m_cont_ErrorBadType_h
21 #define vtk_m_cont_ErrorBadType_h
22 
23 #include <vtkm/cont/Error.h>
24 
25 namespace vtkm
26 {
27 namespace cont
28 {
29 
30 VTKM_SILENCE_WEAK_VTABLE_WARNING_START
31 
32 /// This class is thrown when VTK-m encounters data of a type that is
33 /// incompatible with the current operation.
34 ///
35 class VTKM_ALWAYS_EXPORT ErrorBadType : public Error
36 {
37 public:
ErrorBadType(const std::string & message)38   ErrorBadType(const std::string& message)
39     : Error(message)
40   {
41   }
42 };
43 
44 VTKM_SILENCE_WEAK_VTABLE_WARNING_END
45 }
46 } // namespace vtkm::cont
47 
48 #endif //vtk_m_cont_ErrorBadType_h
49