Go to the documentation of this file.
   10 #ifndef vtk_m_cont_Error_h 
   11 #define vtk_m_cont_Error_h 
   38   const std::string& 
GetMessage()
 const { 
return this->Message; }
 
   46   const std::string& GetMessageA()
 const { 
return this->Message; }
 
   47   const std::string& GetMessageW()
 const { 
return this->Message; }
 
   51   const char* 
what() const noexcept
 override { 
return this->What.c_str(); }
 
   61     , What(
"Undescribed error\n" + StackTrace)
 
   62     , IsDeviceIndependent(false)
 
   65   Error(
const std::string& message, 
bool is_device_independent = 
false)
 
   68     , What(Message + 
"\n" + StackTrace)
 
   69     , IsDeviceIndependent(is_device_independent)
 
   75     this->Message = message;
 
   76     this->What = this->Message + 
"\n" + this->StackTrace;
 
   90 #endif //vtk_m_cont_Error_h 
  
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:119
 
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
std::string StackTrace
Definition: Error.h:81
 
VTKM_CONT_EXPORT VTKM_CONT std::string GetStackTrace(vtkm::Int32 skip=0)
Returns a stacktrace on supported platforms.
 
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:120
 
The superclass of all exceptions thrown by any VTKm function or method.
Definition: Error.h:33
 
std::string What
Definition: Error.h:82
 
std::string Message
Definition: Error.h:80
 
bool GetIsDeviceIndependent() const
Returns true if this exception is device independent.
Definition: Error.h:56
 
bool IsDeviceIndependent
Definition: Error.h:83
 
void SetMessage(const std::string &message)
Definition: Error.h:73
 
const char * what() const noexcept override
Definition: Error.h:51
 
const std::string & GetMessage() const
Definition: Error.h:38
 
Error()
Definition: Error.h:59
 
const std::string & GetStackTrace() const
Definition: Error.h:40
 
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92
 
Error(const std::string &message, bool is_device_independent=false)
Definition: Error.h:65