Viskores  1.0
ErrorBadAllocation.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_ErrorBadAllocation_h
19 #define viskores_cont_ErrorBadAllocation_h
20 
21 #include <viskores/cont/Error.h>
22 
23 namespace viskores
24 {
25 namespace cont
26 {
27 
29 
33 class VISKORES_ALWAYS_EXPORT ErrorBadAllocation : public Error
34 {
35 public:
36  ErrorBadAllocation(const std::string& message)
37  : Error(message)
38  {
39  }
40 };
41 
43 }
44 } // namespace viskores::cont
45 
46 #endif //viskores_cont_ErrorBadAllocation_h
viskores::cont::ErrorBadAllocation
This class is thrown when Viskores attempts to manipulate memory that it should not.
Definition: ErrorBadAllocation.h:33
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::ErrorBadAllocation::ErrorBadAllocation
ErrorBadAllocation(const std::string &message)
Definition: ErrorBadAllocation.h:36
Error.h
VISKORES_SILENCE_WEAK_VTABLE_WARNING_END
#define VISKORES_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:128
VISKORES_SILENCE_WEAK_VTABLE_WARNING_START
#define VISKORES_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:127
viskores::cont::Error
The superclass of all exceptions thrown by any Viskores function or method.
Definition: Error.h:41