Viskores  1.0
ErrorUserAbort.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_ErrorUserAbort_h
19 #define viskores_cont_ErrorUserAbort_h
20 
21 #include <viskores/cont/Error.h>
22 
23 namespace viskores
24 {
25 namespace cont
26 {
27 
29 
33 class VISKORES_ALWAYS_EXPORT ErrorUserAbort : public Error
34 {
35 public:
37  : Error(Message, true)
38  {
39  }
40 
41 private:
42  static constexpr const char* Message = "User abort detected.";
43 };
44 
46 
47 }
48 } // namespace viskores::cont
49 
50 #endif // viskores_cont_ErrorUserAbort_h
viskores::cont::ErrorUserAbort
This class is thrown when viskores detects a request for aborting execution in the current thread.
Definition: ErrorUserAbort.h:33
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
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::ErrorUserAbort::ErrorUserAbort
ErrorUserAbort()
Definition: ErrorUserAbort.h:36
viskores::cont::Error
The superclass of all exceptions thrown by any Viskores function or method.
Definition: Error.h:41