Package com.jogamp.opencl
Class CLException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jogamp.opencl.CLException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CLException.CLBuildProgramFailureException,CLException.CLCompilerNotAvailableException,CLException.CLDeviceNotAvailableException,CLException.CLDeviceNotFoundException,CLException.CLExecStatusErrorForEventsInWaitListException,CLException.CLImageFormatMismatchException,CLException.CLImageFormatNotSupportedException,CLException.CLInvalidArgIndexException,CLException.CLInvalidArgSizeException,CLException.CLInvalidArgValueException,CLException.CLInvalidBinaryException,CLException.CLInvalidBufferSizeException,CLException.CLInvalidBuildOptionsException,CLException.CLInvalidCommandQueueException,CLException.CLInvalidContextException,CLException.CLInvalidDeviceException,CLException.CLInvalidDeviceTypeException,CLException.CLInvalidEventException,CLException.CLInvalidEventWaitListException,CLException.CLInvalidGlobalOffsetException,CLException.CLInvalidGlobalWorkSizeException,CLException.CLInvalidGLObjectException,CLException.CLInvalidGLSharegroupReferenceKhrException,CLException.CLInvalidHostPtrException,CLException.CLInvalidImageFormatDescriptorException,CLException.CLInvalidImageSizeException,CLException.CLInvalidKernelArgsException,CLException.CLInvalidKernelDefinitionException,CLException.CLInvalidKernelException,CLException.CLInvalidKernelNameException,CLException.CLInvalidMemObjectException,CLException.CLInvalidMipLevelException,CLException.CLInvalidOperationException,CLException.CLInvalidPlatformException,CLException.CLInvalidProgramException,CLException.CLInvalidProgramExecutableException,CLException.CLInvalidPropertyException,CLException.CLInvalidQueuePropertiesException,CLException.CLInvalidSamplerException,CLException.CLInvalidValueException,CLException.CLInvalidWorkDimensionException,CLException.CLInvalidWorkGroupSizeException,CLException.CLInvalidWorkItemSizeException,CLException.CLMapFailureException,CLException.CLMemCopyOverlapException,CLException.CLMemObjectAllocationFailureException,CLException.CLMisalignedSubBufferOffsetException,CLException.CLOutOfHostMemoryException,CLException.CLOutOfResourcesException,CLException.CLPlatformNotFoundKhrException,CLException.CLProfilingInfoNotAvailableException
public class CLException extends RuntimeException
Main Exception type for runtime OpenCL errors and failed function calls (e.g. returning not CL_SUCCESS).- Author:
- Michael Bien
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCLException.CLBuildProgramFailureExceptionCLExceptionthrown on CL.CL_BUILD_PROGRAM_FAILURE errors.static classCLException.CLCompilerNotAvailableExceptionCLExceptionthrown on CL.CL_COMPILER_NOT_AVAILABLE errors.static classCLException.CLDeviceNotAvailableExceptionCLExceptionthrown on CL.CL_DEVICE_NOT_AVAILABLE errors.static classCLException.CLDeviceNotFoundExceptionCLExceptionthrown on CL.CL_DEVICE_NOT_FOUND errors.static classCLException.CLExecStatusErrorForEventsInWaitListExceptionCLExceptionthrown on CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST errors.static classCLException.CLImageFormatMismatchExceptionCLExceptionthrown on CL.CL_IMAGE_FORMAT_MISMATCH errors.static classCLException.CLImageFormatNotSupportedExceptionCLExceptionthrown on CL.CL_IMAGE_FORMAT_NOT_SUPPORTED errors.static classCLException.CLInvalidArgIndexExceptionCLExceptionthrown on CL.CL_INVALID_ARG_INDEX errors.static classCLException.CLInvalidArgSizeExceptionCLExceptionthrown on CL.CL_INVALID_ARG_SIZE errors.static classCLException.CLInvalidArgValueExceptionCLExceptionthrown on CL.CL_INVALID_ARG_VALUE errors.static classCLException.CLInvalidBinaryExceptionCLExceptionthrown on CL.CL_INVALID_BINARY errors.static classCLException.CLInvalidBufferSizeExceptionCLExceptionthrown on CL.CL_INVALID_BUFFER_SIZE errors.static classCLException.CLInvalidBuildOptionsExceptionCLExceptionthrown on CL.CL_INVALID_BUILD_OPTIONS errors.static classCLException.CLInvalidCommandQueueExceptionCLExceptionthrown on CL.CL_INVALID_COMMAND_QUEUE errors.static classCLException.CLInvalidContextExceptionCLExceptionthrown on CL.CL_INVALID_CONTEXT errors.static classCLException.CLInvalidDeviceExceptionCLExceptionthrown on CL.CL_INVALID_DEVICE errors.static classCLException.CLInvalidDeviceTypeExceptionCLExceptionthrown on CL.CL_INVALID_DEVICE_TYPE errors.static classCLException.CLInvalidEventExceptionCLExceptionthrown on CL.CL_INVALID_EVENT errors.static classCLException.CLInvalidEventWaitListExceptionCLExceptionthrown on CL.CL_INVALID_EVENT_WAIT_LIST errors.static classCLException.CLInvalidGlobalOffsetExceptionCLExceptionthrown on CL.CL_INVALID_GLOBAL_OFFSET errors.static classCLException.CLInvalidGlobalWorkSizeExceptionCLExceptionthrown on CL.CL_INVALID_GLOBAL_WORK_SIZE errors.static classCLException.CLInvalidGLObjectExceptionCLExceptionthrown on CL.CL_INVALID_GL_OBJECT errors.static classCLException.CLInvalidGLSharegroupReferenceKhrExceptionCLExceptionthrown on CL.CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR errors.static classCLException.CLInvalidHostPtrExceptionCLExceptionthrown on CL.CL_INVALID_HOST_PTR errors.static classCLException.CLInvalidImageFormatDescriptorExceptionCLExceptionthrown on CL.CL_INVALID_IMAGE_FORMAT_DESCRIPTOR errors.static classCLException.CLInvalidImageSizeExceptionCLExceptionthrown on CL.CL_INVALID_IMAGE_SIZE errors.static classCLException.CLInvalidKernelArgsExceptionCLExceptionthrown on CL.CL_INVALID_KERNEL_ARGS errors.static classCLException.CLInvalidKernelDefinitionExceptionCLExceptionthrown on CL.CL_INVALID_KERNEL_DEFINITION errors.static classCLException.CLInvalidKernelExceptionCLExceptionthrown on CL.CL_INVALID_KERNEL errors.static classCLException.CLInvalidKernelNameExceptionCLExceptionthrown on CL.CL_INVALID_KERNEL_NAME errors.static classCLException.CLInvalidMemObjectExceptionCLExceptionthrown on CL.CL_INVALID_MEM_OBJECT errors.static classCLException.CLInvalidMipLevelExceptionCLExceptionthrown on CL.CL_INVALID_MIP_LEVEL errors.static classCLException.CLInvalidOperationExceptionCLExceptionthrown on CL.CL_INVALID_OPERATION errors.static classCLException.CLInvalidPlatformExceptionCLExceptionthrown on CL.CL_INVALID_PLATFORM errors.static classCLException.CLInvalidProgramExceptionCLExceptionthrown on CL.CL_INVALID_PROGRAM errors.static classCLException.CLInvalidProgramExecutableExceptionCLExceptionthrown on CL.CL_INVALID_PROGRAM_EXECUTABLE errors.static classCLException.CLInvalidPropertyExceptionCLExceptionthrown on CL.CL_INVALID_PROPERTY errors.static classCLException.CLInvalidQueuePropertiesExceptionCLExceptionthrown on CL.CL_INVALID_QUEUE_PROPERTIES errors.static classCLException.CLInvalidSamplerExceptionCLExceptionthrown on CL.CL_INVALID_SAMPLER errors.static classCLException.CLInvalidValueExceptionCLExceptionthrown on CL.CL_INVALID_VALUE errors.static classCLException.CLInvalidWorkDimensionExceptionCLExceptionthrown on CL.CL_INVALID_WORK_DIMENSION errors.static classCLException.CLInvalidWorkGroupSizeExceptionCLExceptionthrown on CL.CL_INVALID_WORK_GROUP_SIZE errors.static classCLException.CLInvalidWorkItemSizeExceptionCLExceptionthrown on CL.CL_INVALID_WORK_ITEM_SIZE errors.static classCLException.CLMapFailureExceptionCLExceptionthrown on CL.CL_MAP_FAILURE errors.static classCLException.CLMemCopyOverlapExceptionCLExceptionthrown on CL.CL_MEM_COPY_OVERLAP errors.static classCLException.CLMemObjectAllocationFailureExceptionCLExceptionthrown on CL.CL_MEM_OBJECT_ALLOCATION_FAILURE errors.static classCLException.CLMisalignedSubBufferOffsetExceptionCLExceptionthrown on CL.CL_MISALIGNED_SUB_BUFFER_OFFSET errors.static classCLException.CLOutOfHostMemoryExceptionCLExceptionthrown on CL.CL_OUT_OF_HOST_MEMORY errors.static classCLException.CLOutOfResourcesExceptionCLExceptionthrown on CL.CL_OUT_OF_RESOURCES errors.static classCLException.CLPlatformNotFoundKhrExceptionCLExceptionthrown on CL.CL_PLATFORM_NOT_FOUND_KHR errors.static classCLException.CLProfilingInfoNotAvailableExceptionCLExceptionthrown on CL.CL_PROFILING_INFO_NOT_AVAILABLE errors.
-
Constructor Summary
Constructors Constructor Description CLException(String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckForError(int status, String message)Throws a CLException whenstatus != CL_SUCCESS.StringgetCLErrorString()Returns a human readable String for the OpenCL error code.static CLExceptionnewException(int status, String message)Returns a CLException specific to the error code.static StringresolveErrorCode(int error)Returns a human readable String for the OpenCL error code or null if not known.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
errorcode
public final int errorcode
-
error
public final String error
-
-
Constructor Detail
-
CLException
public CLException(String message)
-
-
Method Detail
-
checkForError
public static void checkForError(int status, String message)Throws a CLException whenstatus != CL_SUCCESS.
-
newException
public static CLException newException(int status, String message)
Returns a CLException specific to the error code.
-
getCLErrorString
public String getCLErrorString()
Returns a human readable String for the OpenCL error code.
-
resolveErrorCode
public static String resolveErrorCode(int error)
Returns a human readable String for the OpenCL error code or null if not known.
-
-