- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.cuda.CudaException
-
- All Implemented Interfaces:
Serializable
public final class CudaException extends Exception
TheCudaException
class represents an unusual or unexpected response from a CUDA-capable device.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
code
-
Constructor Summary
Constructors Constructor Description CudaException(int code)
Creates a new exception object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Returns a human-readable string describing the problem represented by this exception.-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 classThrowable
- Returns:
- String The receiver's message.
-
-