Class DeviceException

Class Documentation

class DeviceException

This class is used on device for reporting errors It should be used indirectly via the DTHROW macro e.g. DTHROW(“MyError %d”, 12);

Public Functions

template<typename ...Args>
__device__ inline void setMessage(const char *format, Args... args)

Construct the formatted message for the exception This should be used like printf It does not support ‘s’, all other format args should work

Public Static Functions

__device__ static inline DeviceException create(const char *file, const unsigned int line)

Create and return a new device exception