summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-16 17:42:23 +0200
committerMichael Bien <[email protected]>2010-06-16 17:42:23 +0200
commit35c9254adf4448c5eb86239118c5fb1dd6db88b8 (patch)
treeb47bf6f8eddfd51d9f3548e57904fe4bb41a7406
parenta2cf85ca7c9e90cec6604559548e6b73a82d57da (diff)
two new CL 1.1 exception types.
-rw-r--r--src/com/jogamp/opencl/CLException.java26
1 files changed, 26 insertions, 0 deletions
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