Module openj9.cuda
Package com.ibm.cuda

Class CudaException

  • All Implemented Interfaces:
    Serializable

    public final class CudaException
    extends Exception
    The CudaException class represents an unusual or unexpected response from a CUDA-capable device.
    See Also:
    Serialized Form
    • Field Detail

      • code

        public final int code
    • Constructor Detail

      • CudaException

        public CudaException​(int code)
        Creates a new exception object.
        Parameters:
        code - the error code
        See Also:
        CudaError
    • Method Detail

      • getMessage

        public String getMessage()
        Returns a human-readable string describing the problem represented by this exception.
        Overrides:
        getMessage in class Throwable
        Returns:
        String The receiver's message.