ErrorBadValue.h 1.43 KB
Newer Older
1 2 3 4 5 6 7 8
//============================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//
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 15 16 17 18 19
//  the U.S. Government retains certain rights in this software.
//
//  Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
//  Laboratory (LANL), the U.S. Government retains certain rights in
//  this software.
//============================================================================
20 21
#ifndef vtk_m_cont_ErrorBadValue_h
#define vtk_m_cont_ErrorBadValue_h
22

23
#include <vtkm/cont/Error.h>
24

25 26 27 28
namespace vtkm
{
namespace cont
{
29

30 31
VTKM_SILENCE_WEAK_VTABLE_WARNING_START

32 33 34
/// This class is thrown when a VTKm function or method encounters an invalid
/// value that inhibits progress.
///
35
class VTKM_ALWAYS_EXPORT ErrorBadValue : public Error
36 37
{
public:
38
  ErrorBadValue(const std::string& message)
39
    : Error(message, true)
40 41
  {
  }
42 43
};

44
VTKM_SILENCE_WEAK_VTABLE_WARNING_END
45 46 47
}
} // namespace vtkm::cont

48
#endif //vtk_m_cont_ErrorBadValue_h