From 35c9254adf4448c5eb86239118c5fb1dd6db88b8 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 16 Jun 2010 17:42:23 +0200 Subject: two new CL 1.1 exception types. --- src/com/jogamp/opencl/CLException.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/com/jogamp') diff --git a/src/com/jogamp/opencl/CLException.java b/src/com/jogamp/opencl/CLException.java index 29491bc7..ff178617 100644 --- a/src/com/jogamp/opencl/CLException.java +++ b/src/com/jogamp/opencl/CLException.java @@ -115,6 +115,8 @@ public class CLException extends RuntimeException { case CL_INVALID_GLOBAL_WORK_SIZE: return "CL_INVALID_GLOBAL_WORK_SIZE"; case CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR: return "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR"; case CL_PLATFORM_NOT_FOUND_KHR: return "CL_PLATFORM_NOT_FOUND_KHR"; + case CL_MISALIGNED_SUB_BUFFER_OFFSET: return "CL_MISALIGNED_SUB_BUFFER_OFFSET"; + case CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST: return "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST"; default: return null; } } @@ -169,6 +171,8 @@ public class CLException extends RuntimeException { case CL_INVALID_GLOBAL_WORK_SIZE: return new CLInvalidGlobalWorkSizeException(message); case CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR: return new CLInvalidGLSharegroupReferenceKhrException(message); case CL_PLATFORM_NOT_FOUND_KHR: return new CLPlatformNotFoundKhrException(message); + case CL_MISALIGNED_SUB_BUFFER_OFFSET: return new CLMisalignedSubBufferOffsetException(message); + case CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST: return new CLExecStatusErrorForEventsInWaitListException(message); default: return null; } } @@ -701,4 +705,26 @@ public class CLException extends RuntimeException { } } + /** + * {@link CLException} thrown on CL.CL_MISALIGNED_SUB_BUFFER_OFFSET errors. + * @author Michael Bien + */ + public final static class CLMisalignedSubBufferOffsetException extends CLException { + private static final long serialVersionUID = CLException.serialVersionUID+CL_MISALIGNED_SUB_BUFFER_OFFSET; + public CLMisalignedSubBufferOffsetException(String message) { + super(CL_MISALIGNED_SUB_BUFFER_OFFSET, "CL_MISALIGNED_SUB_BUFFER_OFFSET", message); + } + } + + /** + * {@link CLException} thrown on CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST errors. + * @author Michael Bien + */ + public final static class CLExecStatusErrorForEventsInWaitListException extends CLException { + private static final long serialVersionUID = CLException.serialVersionUID+CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST; + public CLExecStatusErrorForEventsInWaitListException(String message) { + super(CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST, "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST", message); + } + } + } \ No newline at end of file -- cgit v1.2.3