The superclass of all exceptions thrown by any VTKm function or method.
More...
#include <Error.h>
|
| const std::string & | GetMessage () const |
| | Returns a message describing what caused the error. More...
|
| |
| const std::string & | GetStackTrace () const |
| | Provides a stack trace to the location where this error was thrown. More...
|
| |
| const char * | what () const noexcept override |
| | Returns the message for the error and the stack trace for it. More...
|
| |
| bool | GetIsDeviceIndependent () const |
| | Returns true if this exception is device independent. More...
|
| |
|
| | Error () |
| |
| | Error (const std::string &message, bool is_device_independent=false) |
| |
| void | SetMessage (const std::string &message) |
| |
The superclass of all exceptions thrown by any VTKm function or method.
◆ Error() [1/2]
| vtkm::cont::Error::Error |
( |
| ) |
|
|
inlineprotected |
◆ Error() [2/2]
| vtkm::cont::Error::Error |
( |
const std::string & |
message, |
|
|
bool |
is_device_independent = false |
|
) |
| |
|
inlineprotected |
◆ GetIsDeviceIndependent()
| bool vtkm::cont::Error::GetIsDeviceIndependent |
( |
| ) |
const |
|
inline |
Returns true if this exception is device independent.
For exceptions that are not device independent, vtkm::TryExecute, for example, may try executing the code on other available devices.
◆ GetMessage()
| const std::string& vtkm::cont::Error::GetMessage |
( |
| ) |
const |
|
inline |
Returns a message describing what caused the error.
◆ GetStackTrace()
| const std::string& vtkm::cont::Error::GetStackTrace |
( |
| ) |
const |
|
inline |
Provides a stack trace to the location where this error was thrown.
◆ SetMessage()
| void vtkm::cont::Error::SetMessage |
( |
const std::string & |
message | ) |
|
|
inlineprotected |
◆ what()
| const char* vtkm::cont::Error::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Returns the message for the error and the stack trace for it.
This method is provided for std::exception compatibility.
◆ IsDeviceIndependent
| bool vtkm::cont::Error::IsDeviceIndependent |
|
private |
◆ Message
| std::string vtkm::cont::Error::Message |
|
private |
◆ StackTrace
| std::string vtkm::cont::Error::StackTrace |
|
private |
◆ What
| std::string vtkm::cont::Error::What |
|
private |
The documentation for this class was generated from the following file: