public class CudaException
extends java.lang.RuntimeException
JCuda#setExceptionsEnabled(boolean)
.
If exceptions are enabled, the CUDA binding methods will throw a
CudaException if the CUDA function did not return cudaError.cudaSuccess.JCudaDriver#setExceptionsEnabled(boolean)
.
If exceptions are enabled, the CUDA binding methods will throw a
CudaException if the CUDA function did not return CUresult.CUDA_SUCCESS.Constructor and Description |
---|
CudaException(java.lang.String message)
Creates a new CudaException with the given error message.
|
CudaException(java.lang.String message,
java.lang.Throwable cause)
Creates a new CudaException with the given error message
and the given Throwable as the cause.
|
public CudaException(java.lang.String message)
message
- The error message for this CudaExceptionpublic CudaException(java.lang.String message, java.lang.Throwable cause)
message
- The error message for this CudaExceptioncause
- The reason for this CudaException