summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/CLException.java')
-rw-r--r--src/com/jogamp/opencl/CLException.java263
1 files changed, 134 insertions, 129 deletions
diff --git a/src/com/jogamp/opencl/CLException.java b/src/com/jogamp/opencl/CLException.java
index 84d3536c..c74b99bc 100644
--- a/src/com/jogamp/opencl/CLException.java
+++ b/src/com/jogamp/opencl/CLException.java
@@ -3,14 +3,14 @@
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
- *
+ *
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
- *
+ *
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR
@@ -20,7 +20,7 @@
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of JogAmp Community.
@@ -30,6 +30,11 @@ package com.jogamp.opencl;
import com.jogamp.opencl.llb.gl.CLGL;
import com.jogamp.opencl.llb.CL;
+import com.jogamp.opencl.llb.CLDeviceBinding;
+import com.jogamp.opencl.llb.CLImageBinding;
+import com.jogamp.opencl.llb.CLMemObjBinding;
+import com.jogamp.opencl.llb.CLPlatformBinding;
+import com.jogamp.opencl.llb.CLProgramBinding;
/**
* Main Exception type for runtime OpenCL errors and failed function calls (e.g. returning not CL_SUCCESS).
@@ -47,13 +52,13 @@ public class CLException extends RuntimeException {
// private final static String ERROR_CODE_DOC =
// "http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html";
- public CLException(String message) {
+ public CLException(final String message) {
super(message);
errorcode = 0;
error = "none";
}
- private CLException(int errorcode, String errorStr, String message) {
+ private CLException(final int errorcode, final String errorStr, final String message) {
super(message + " [error: " + errorStr+"]"/* + " (man page: "+ERROR_CODE_DOC+")"*/);
this.error = errorStr;
this.errorcode = errorcode;
@@ -62,9 +67,9 @@ public class CLException extends RuntimeException {
/**
* Throws a CLException when <code>status != CL_SUCCESS</code>.
*/
- public static void checkForError(int status, String message) {
+ public static void checkForError(final int status, final String message) {
if(status != CL.CL_SUCCESS) {
- CLException ex = newException(status, message);
+ final CLException ex = newException(status, message);
ex.fillInStackTrace();
throw ex;
}
@@ -73,8 +78,8 @@ public class CLException extends RuntimeException {
/**
* Returns a CLException specific to the error code.
*/
- public static CLException newException(int status, String message) {
- CLException specificEx = createSpecificException(status, message);
+ public static CLException newException(final int status, final String message) {
+ final CLException specificEx = createSpecificException(status, message);
if(specificEx != null) {
specificEx.fillInStackTrace();
return specificEx;
@@ -95,20 +100,20 @@ public class CLException extends RuntimeException {
/**
* Returns a human readable String for the OpenCL error code or null if not known.
*/
- public static String resolveErrorCode(int error) {
+ public static String resolveErrorCode(final int error) {
switch(error) {
- case CL.CL_DEVICE_NOT_FOUND: return "CL_DEVICE_NOT_FOUND";
- case CL.CL_DEVICE_NOT_AVAILABLE: return "CL_DEVICE_NOT_AVAILABLE";
+ case CLDeviceBinding.CL_DEVICE_NOT_FOUND: return "CL_DEVICE_NOT_FOUND";
+ case CLDeviceBinding.CL_DEVICE_NOT_AVAILABLE: return "CL_DEVICE_NOT_AVAILABLE";
case CL.CL_COMPILER_NOT_AVAILABLE: return "CL_COMPILER_NOT_AVAILABLE";
- case CL.CL_MEM_OBJECT_ALLOCATION_FAILURE: return "CL_MEM_OBJECT_ALLOCATION_FAILURE";
+ case CLMemObjBinding.CL_MEM_OBJECT_ALLOCATION_FAILURE: return "CL_MEM_OBJECT_ALLOCATION_FAILURE";
case CL.CL_OUT_OF_RESOURCES: return "CL_OUT_OF_RESOURCES";
case CL.CL_OUT_OF_HOST_MEMORY: return "CL_OUT_OF_HOST_MEMORY";
case CL.CL_PROFILING_INFO_NOT_AVAILABLE: return "CL_PROFILING_INFO_NOT_AVAILABLE";
- case CL.CL_MEM_COPY_OVERLAP: return "CL_MEM_COPY_OVERLAP";
- case CL.CL_IMAGE_FORMAT_MISMATCH: return "CL_IMAGE_FORMAT_MISMATCH";
- case CL.CL_IMAGE_FORMAT_NOT_SUPPORTED: return "CL_IMAGE_FORMAT_NOT_SUPPORTED";
- case CL.CL_BUILD_PROGRAM_FAILURE: return "CL_BUILD_PROGRAM_FAILURE";
- case CL.CL_MAP_FAILURE: return "CL_MAP_FAILURE";
+ case CLMemObjBinding.CL_MEM_COPY_OVERLAP: return "CL_MEM_COPY_OVERLAP";
+ case CLImageBinding.CL_IMAGE_FORMAT_MISMATCH: return "CL_IMAGE_FORMAT_MISMATCH";
+ case CLImageBinding.CL_IMAGE_FORMAT_NOT_SUPPORTED: return "CL_IMAGE_FORMAT_NOT_SUPPORTED";
+ case CLProgramBinding.CL_BUILD_PROGRAM_FAILURE: return "CL_BUILD_PROGRAM_FAILURE";
+ case CLMemObjBinding.CL_MAP_FAILURE: return "CL_MAP_FAILURE";
case CL.CL_INVALID_VALUE: return "CL_INVALID_VALUE";
case CL.CL_INVALID_DEVICE_TYPE: return "CL_INVALID_DEVICE_TYPE";
case CL.CL_INVALID_PLATFORM: return "CL_INVALID_PLATFORM";
@@ -143,7 +148,7 @@ public class CLException extends RuntimeException {
case CL.CL_INVALID_MIP_LEVEL: return "CL_INVALID_MIP_LEVEL";
case CL.CL_INVALID_GLOBAL_WORK_SIZE: return "CL_INVALID_GLOBAL_WORK_SIZE";
case CL.CL_INVALID_PROPERTY: return "CL_INVALID_PROPERTY";
- case CL.CL_PLATFORM_NOT_FOUND_KHR: return "CL_PLATFORM_NOT_FOUND_KHR";
+ case CLPlatformBinding.CL_PLATFORM_NOT_FOUND_KHR: return "CL_PLATFORM_NOT_FOUND_KHR";
case CL.CL_MISALIGNED_SUB_BUFFER_OFFSET: return "CL_MISALIGNED_SUB_BUFFER_OFFSET";
case CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST: return "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST";
case CLGL.CL_INVALID_GL_OBJECT: return "CL_INVALID_GL_OBJECT";
@@ -152,20 +157,20 @@ public class CLException extends RuntimeException {
}
}
- private static CLException createSpecificException(int error, String message) {
+ private static CLException createSpecificException(final int error, final String message) {
switch(error) {
- case CL.CL_DEVICE_NOT_FOUND: return new CLDeviceNotFoundException(message);
- case CL.CL_DEVICE_NOT_AVAILABLE: return new CLDeviceNotAvailableException(message);
+ case CLDeviceBinding.CL_DEVICE_NOT_FOUND: return new CLDeviceNotFoundException(message);
+ case CLDeviceBinding.CL_DEVICE_NOT_AVAILABLE: return new CLDeviceNotAvailableException(message);
case CL.CL_COMPILER_NOT_AVAILABLE: return new CLCompilerNotAvailableException(message);
- case CL.CL_MEM_OBJECT_ALLOCATION_FAILURE: return new CLMemObjectAllocationFailureException(message);
+ case CLMemObjBinding.CL_MEM_OBJECT_ALLOCATION_FAILURE: return new CLMemObjectAllocationFailureException(message);
case CL.CL_OUT_OF_RESOURCES: return new CLOutOfResourcesException(message);
case CL.CL_OUT_OF_HOST_MEMORY: return new CLOutOfHostMemoryException(message);
case CL.CL_PROFILING_INFO_NOT_AVAILABLE: return new CLProfilingInfoNotAvailableException(message);
- case CL.CL_MEM_COPY_OVERLAP: return new CLMemCopyOverlapException(message);
- case CL.CL_IMAGE_FORMAT_MISMATCH: return new CLImageFormatMismatchException(message);
- case CL.CL_IMAGE_FORMAT_NOT_SUPPORTED: return new CLImageFormatNotSupportedException(message);
- case CL.CL_BUILD_PROGRAM_FAILURE: return new CLBuildProgramFailureException(message);
- case CL.CL_MAP_FAILURE: return new CLMapFailureException(message);
+ case CLMemObjBinding.CL_MEM_COPY_OVERLAP: return new CLMemCopyOverlapException(message);
+ case CLImageBinding.CL_IMAGE_FORMAT_MISMATCH: return new CLImageFormatMismatchException(message);
+ case CLImageBinding.CL_IMAGE_FORMAT_NOT_SUPPORTED: return new CLImageFormatNotSupportedException(message);
+ case CLProgramBinding.CL_BUILD_PROGRAM_FAILURE: return new CLBuildProgramFailureException(message);
+ case CLMemObjBinding.CL_MAP_FAILURE: return new CLMapFailureException(message);
case CL.CL_INVALID_VALUE: return new CLInvalidValueException(message);
case CL.CL_INVALID_DEVICE_TYPE: return new CLInvalidDeviceTypeException(message);
case CL.CL_INVALID_PLATFORM: return new CLInvalidPlatformException(message);
@@ -200,7 +205,7 @@ public class CLException extends RuntimeException {
case CL.CL_INVALID_MIP_LEVEL: return new CLInvalidMipLevelException(message);
case CL.CL_INVALID_GLOBAL_WORK_SIZE: return new CLInvalidGlobalWorkSizeException(message);
case CL.CL_INVALID_PROPERTY: return new CLInvalidPropertyException(message);
- case CL.CL_PLATFORM_NOT_FOUND_KHR: return new CLPlatformNotFoundKhrException(message);
+ case CLPlatformBinding.CL_PLATFORM_NOT_FOUND_KHR: return new CLPlatformNotFoundKhrException(message);
case CL.CL_MISALIGNED_SUB_BUFFER_OFFSET: return new CLMisalignedSubBufferOffsetException(message);
case CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST: return new CLExecStatusErrorForEventsInWaitListException(message);
case CLGL.CL_INVALID_GL_OBJECT: return new CLInvalidGLObjectException(message);
@@ -214,8 +219,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLDeviceNotFoundException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_DEVICE_NOT_FOUND;
- public CLDeviceNotFoundException(String message) {
- super(CL.CL_DEVICE_NOT_FOUND, "CL_DEVICE_NOT_FOUND", message);
+ public CLDeviceNotFoundException(final String message) {
+ super(CLDeviceBinding.CL_DEVICE_NOT_FOUND, "CL_DEVICE_NOT_FOUND", message);
}
}
@@ -224,8 +229,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLDeviceNotAvailableException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_DEVICE_NOT_AVAILABLE;
- public CLDeviceNotAvailableException(String message) {
- super(CL.CL_DEVICE_NOT_AVAILABLE, "CL_DEVICE_NOT_AVAILABLE", message);
+ public CLDeviceNotAvailableException(final String message) {
+ super(CLDeviceBinding.CL_DEVICE_NOT_AVAILABLE, "CL_DEVICE_NOT_AVAILABLE", message);
}
}
@@ -234,7 +239,7 @@ public class CLException extends RuntimeException {
*/
public final static class CLCompilerNotAvailableException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_COMPILER_NOT_AVAILABLE;
- public CLCompilerNotAvailableException(String message) {
+ public CLCompilerNotAvailableException(final String message) {
super(CL.CL_COMPILER_NOT_AVAILABLE, "CL_COMPILER_NOT_AVAILABLE", message);
}
}
@@ -244,8 +249,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLMemObjectAllocationFailureException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_MEM_OBJECT_ALLOCATION_FAILURE;
- public CLMemObjectAllocationFailureException(String message) {
- super(CL.CL_MEM_OBJECT_ALLOCATION_FAILURE, "CL_MEM_OBJECT_ALLOCATION_FAILURE", message);
+ public CLMemObjectAllocationFailureException(final String message) {
+ super(CLMemObjBinding.CL_MEM_OBJECT_ALLOCATION_FAILURE, "CL_MEM_OBJECT_ALLOCATION_FAILURE", message);
}
}
@@ -254,7 +259,7 @@ public class CLException extends RuntimeException {
*/
public final static class CLOutOfResourcesException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_OUT_OF_RESOURCES;
- public CLOutOfResourcesException(String message) {
+ public CLOutOfResourcesException(final String message) {
super(CL.CL_OUT_OF_RESOURCES, "CL_OUT_OF_RESOURCES", message);
}
}
@@ -264,7 +269,7 @@ public class CLException extends RuntimeException {
*/
public final static class CLOutOfHostMemoryException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_OUT_OF_HOST_MEMORY;
- public CLOutOfHostMemoryException(String message) {
+ public CLOutOfHostMemoryException(final String message) {
super(CL.CL_OUT_OF_HOST_MEMORY, "CL_OUT_OF_HOST_MEMORY", message);
}
}
@@ -274,7 +279,7 @@ public class CLException extends RuntimeException {
*/
public final static class CLProfilingInfoNotAvailableException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_PROFILING_INFO_NOT_AVAILABLE;
- public CLProfilingInfoNotAvailableException(String message) {
+ public CLProfilingInfoNotAvailableException(final String message) {
super(CL.CL_PROFILING_INFO_NOT_AVAILABLE, "CL_PROFILING_INFO_NOT_AVAILABLE", message);
}
}
@@ -284,8 +289,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLMemCopyOverlapException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_MEM_COPY_OVERLAP;
- public CLMemCopyOverlapException(String message) {
- super(CL.CL_MEM_COPY_OVERLAP, "CL_MEM_COPY_OVERLAP", message);
+ public CLMemCopyOverlapException(final String message) {
+ super(CLMemObjBinding.CL_MEM_COPY_OVERLAP, "CL_MEM_COPY_OVERLAP", message);
}
}
@@ -294,8 +299,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLImageFormatMismatchException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_IMAGE_FORMAT_MISMATCH;
- public CLImageFormatMismatchException(String message) {
- super(CL.CL_IMAGE_FORMAT_MISMATCH, "CL_IMAGE_FORMAT_MISMATCH", message);
+ public CLImageFormatMismatchException(final String message) {
+ super(CLImageBinding.CL_IMAGE_FORMAT_MISMATCH, "CL_IMAGE_FORMAT_MISMATCH", message);
}
}
@@ -304,8 +309,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLImageFormatNotSupportedException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_IMAGE_FORMAT_NOT_SUPPORTED;
- public CLImageFormatNotSupportedException(String message) {
- super(CL.CL_IMAGE_FORMAT_NOT_SUPPORTED, "CL_IMAGE_FORMAT_NOT_SUPPORTED", message);
+ public CLImageFormatNotSupportedException(final String message) {
+ super(CLImageBinding.CL_IMAGE_FORMAT_NOT_SUPPORTED, "CL_IMAGE_FORMAT_NOT_SUPPORTED", message);
}
}
@@ -314,8 +319,8 @@ public class CLException extends RuntimeException {
*/
public final static class CLBuildProgramFailureException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_BUILD_PROGRAM_FAILURE;
- public CLBuildProgramFailureException(String message) {
- super(CL.CL_BUILD_PROGRAM_FAILURE, "CL_BUILD_PROGRAM_FAILURE", message);
+ public CLBuildProgramFailureException(final String message) {
+ super(CLProgramBinding.CL_BUILD_PROGRAM_FAILURE, "CL_BUILD_PROGRAM_FAILURE", message);
}
}
@@ -324,436 +329,436 @@ public class CLException extends RuntimeException {
*/
public final static class CLMapFailureException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_MAP_FAILURE;
- public CLMapFailureException(String message) {
- super(CL.CL_MAP_FAILURE, "CL_MAP_FAILURE", message);
+ public CLMapFailureException(final String message) {
+ super(CLMemObjBinding.CL_MAP_FAILURE, "CL_MAP_FAILURE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_VALUE errors.
- *
+ *
*/
public final static class CLInvalidValueException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_VALUE;
- public CLInvalidValueException(String message) {
+ public CLInvalidValueException(final String message) {
super(CL.CL_INVALID_VALUE, "CL_INVALID_VALUE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_DEVICE_TYPE errors.
- *
+ *
*/
public final static class CLInvalidDeviceTypeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_DEVICE_TYPE;
- public CLInvalidDeviceTypeException(String message) {
+ public CLInvalidDeviceTypeException(final String message) {
super(CL.CL_INVALID_DEVICE_TYPE, "CL_INVALID_DEVICE_TYPE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_PLATFORM errors.
- *
+ *
*/
public final static class CLInvalidPlatformException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_PLATFORM;
- public CLInvalidPlatformException(String message) {
+ public CLInvalidPlatformException(final String message) {
super(CL.CL_INVALID_PLATFORM, "CL_INVALID_PLATFORM", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_DEVICE errors.
- *
+ *
*/
public final static class CLInvalidDeviceException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_DEVICE;
- public CLInvalidDeviceException(String message) {
+ public CLInvalidDeviceException(final String message) {
super(CL.CL_INVALID_DEVICE, "CL_INVALID_DEVICE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_CONTEXT errors.
- *
+ *
*/
public final static class CLInvalidContextException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_CONTEXT;
- public CLInvalidContextException(String message) {
+ public CLInvalidContextException(final String message) {
super(CL.CL_INVALID_CONTEXT, "CL_INVALID_CONTEXT", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_QUEUE_PROPERTIES errors.
- *
+ *
*/
public final static class CLInvalidQueuePropertiesException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_QUEUE_PROPERTIES;
- public CLInvalidQueuePropertiesException(String message) {
+ public CLInvalidQueuePropertiesException(final String message) {
super(CL.CL_INVALID_QUEUE_PROPERTIES, "CL_INVALID_QUEUE_PROPERTIES", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_COMMAND_QUEUE errors.
- *
+ *
*/
public final static class CLInvalidCommandQueueException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_COMMAND_QUEUE;
- public CLInvalidCommandQueueException(String message) {
+ public CLInvalidCommandQueueException(final String message) {
super(CL.CL_INVALID_COMMAND_QUEUE, "CL_INVALID_COMMAND_QUEUE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_HOST_PTR errors.
- *
+ *
*/
public final static class CLInvalidHostPtrException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_HOST_PTR;
- public CLInvalidHostPtrException(String message) {
+ public CLInvalidHostPtrException(final String message) {
super(CL.CL_INVALID_HOST_PTR, "CL_INVALID_HOST_PTR", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_MEM_OBJECT errors.
- *
+ *
*/
public final static class CLInvalidMemObjectException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_MEM_OBJECT;
- public CLInvalidMemObjectException(String message) {
+ public CLInvalidMemObjectException(final String message) {
super(CL.CL_INVALID_MEM_OBJECT, "CL_INVALID_MEM_OBJECT", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_IMAGE_FORMAT_DESCRIPTOR errors.
- *
+ *
*/
public final static class CLInvalidImageFormatDescriptorException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_IMAGE_FORMAT_DESCRIPTOR;
- public CLInvalidImageFormatDescriptorException(String message) {
+ public CLInvalidImageFormatDescriptorException(final String message) {
super(CL.CL_INVALID_IMAGE_FORMAT_DESCRIPTOR, "CL_INVALID_IMAGE_FORMAT_DESCRIPTOR", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_IMAGE_SIZE errors.
- *
+ *
*/
public final static class CLInvalidImageSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_IMAGE_SIZE;
- public CLInvalidImageSizeException(String message) {
+ public CLInvalidImageSizeException(final String message) {
super(CL.CL_INVALID_IMAGE_SIZE, "CL_INVALID_IMAGE_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_SAMPLER errors.
- *
+ *
*/
public final static class CLInvalidSamplerException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_SAMPLER;
- public CLInvalidSamplerException(String message) {
+ public CLInvalidSamplerException(final String message) {
super(CL.CL_INVALID_SAMPLER, "CL_INVALID_SAMPLER", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_BINARY errors.
- *
+ *
*/
public final static class CLInvalidBinaryException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_BINARY;
- public CLInvalidBinaryException(String message) {
+ public CLInvalidBinaryException(final String message) {
super(CL.CL_INVALID_BINARY, "CL_INVALID_BINARY", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_BUILD_OPTIONS errors.
- *
+ *
*/
public final static class CLInvalidBuildOptionsException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_BUILD_OPTIONS;
- public CLInvalidBuildOptionsException(String message) {
+ public CLInvalidBuildOptionsException(final String message) {
super(CL.CL_INVALID_BUILD_OPTIONS, "CL_INVALID_BUILD_OPTIONS", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_PROGRAM errors.
- *
+ *
*/
public final static class CLInvalidProgramException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_PROGRAM;
- public CLInvalidProgramException(String message) {
+ public CLInvalidProgramException(final String message) {
super(CL.CL_INVALID_PROGRAM, "CL_INVALID_PROGRAM", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_PROGRAM_EXECUTABLE errors.
- *
+ *
*/
public final static class CLInvalidProgramExecutableException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_PROGRAM_EXECUTABLE;
- public CLInvalidProgramExecutableException(String message) {
+ public CLInvalidProgramExecutableException(final String message) {
super(CL.CL_INVALID_PROGRAM_EXECUTABLE, "CL_INVALID_PROGRAM_EXECUTABLE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_KERNEL_NAME errors.
- *
+ *
*/
public final static class CLInvalidKernelNameException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_KERNEL_NAME;
- public CLInvalidKernelNameException(String message) {
+ public CLInvalidKernelNameException(final String message) {
super(CL.CL_INVALID_KERNEL_NAME, "CL_INVALID_KERNEL_NAME", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_KERNEL_DEFINITION errors.
- *
+ *
*/
public final static class CLInvalidKernelDefinitionException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_KERNEL_DEFINITION;
- public CLInvalidKernelDefinitionException(String message) {
+ public CLInvalidKernelDefinitionException(final String message) {
super(CL.CL_INVALID_KERNEL_DEFINITION, "CL_INVALID_KERNEL_DEFINITION", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_KERNEL errors.
- *
+ *
*/
public final static class CLInvalidKernelException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_KERNEL;
- public CLInvalidKernelException(String message) {
+ public CLInvalidKernelException(final String message) {
super(CL.CL_INVALID_KERNEL, "CL_INVALID_KERNEL", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_ARG_INDEX errors.
- *
+ *
*/
public final static class CLInvalidArgIndexException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_ARG_INDEX;
- public CLInvalidArgIndexException(String message) {
+ public CLInvalidArgIndexException(final String message) {
super(CL.CL_INVALID_ARG_INDEX, "CL_INVALID_ARG_INDEX", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_ARG_VALUE errors.
- *
+ *
*/
public final static class CLInvalidArgValueException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_ARG_VALUE;
- public CLInvalidArgValueException(String message) {
+ public CLInvalidArgValueException(final String message) {
super(CL.CL_INVALID_ARG_VALUE, "CL_INVALID_ARG_VALUE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_ARG_SIZE errors.
- *
+ *
*/
public final static class CLInvalidArgSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_ARG_SIZE;
- public CLInvalidArgSizeException(String message) {
+ public CLInvalidArgSizeException(final String message) {
super(CL.CL_INVALID_ARG_SIZE, "CL_INVALID_ARG_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_KERNEL_ARGS errors.
- *
+ *
*/
public final static class CLInvalidKernelArgsException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_KERNEL_ARGS;
- public CLInvalidKernelArgsException(String message) {
+ public CLInvalidKernelArgsException(final String message) {
super(CL.CL_INVALID_KERNEL_ARGS, "CL_INVALID_KERNEL_ARGS", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_WORK_DIMENSION errors.
- *
+ *
*/
public final static class CLInvalidWorkDimensionException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_WORK_DIMENSION;
- public CLInvalidWorkDimensionException(String message) {
+ public CLInvalidWorkDimensionException(final String message) {
super(CL.CL_INVALID_WORK_DIMENSION, "CL_INVALID_WORK_DIMENSION", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_WORK_GROUP_SIZE errors.
- *
+ *
*/
public final static class CLInvalidWorkGroupSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_WORK_GROUP_SIZE;
- public CLInvalidWorkGroupSizeException(String message) {
+ public CLInvalidWorkGroupSizeException(final String message) {
super(CL.CL_INVALID_WORK_GROUP_SIZE, "CL_INVALID_WORK_GROUP_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_WORK_ITEM_SIZE errors.
- *
+ *
*/
public final static class CLInvalidWorkItemSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_WORK_ITEM_SIZE;
- public CLInvalidWorkItemSizeException(String message) {
+ public CLInvalidWorkItemSizeException(final String message) {
super(CL.CL_INVALID_WORK_ITEM_SIZE, "CL_INVALID_WORK_ITEM_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_GLOBAL_OFFSET errors.
- *
+ *
*/
public final static class CLInvalidGlobalOffsetException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_GLOBAL_OFFSET;
- public CLInvalidGlobalOffsetException(String message) {
+ public CLInvalidGlobalOffsetException(final String message) {
super(CL.CL_INVALID_GLOBAL_OFFSET, "CL_INVALID_GLOBAL_OFFSET", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_EVENT_WAIT_LIST errors.
- *
+ *
*/
public final static class CLInvalidEventWaitListException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_EVENT_WAIT_LIST;
- public CLInvalidEventWaitListException(String message) {
+ public CLInvalidEventWaitListException(final String message) {
super(CL.CL_INVALID_EVENT_WAIT_LIST, "CL_INVALID_EVENT_WAIT_LIST", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_EVENT errors.
- *
+ *
*/
public final static class CLInvalidEventException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_EVENT;
- public CLInvalidEventException(String message) {
+ public CLInvalidEventException(final String message) {
super(CL.CL_INVALID_EVENT, "CL_INVALID_EVENT", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_OPERATION errors.
- *
+ *
*/
public final static class CLInvalidOperationException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_OPERATION;
- public CLInvalidOperationException(String message) {
+ public CLInvalidOperationException(final String message) {
super(CL.CL_INVALID_OPERATION, "CL_INVALID_OPERATION", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_GL_OBJECT errors.
- *
+ *
*/
public final static class CLInvalidGLObjectException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CLGL.CL_INVALID_GL_OBJECT;
- public CLInvalidGLObjectException(String message) {
+ public CLInvalidGLObjectException(final String message) {
super(CLGL.CL_INVALID_GL_OBJECT, "CL_INVALID_GL_OBJECT", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_BUFFER_SIZE errors.
- *
+ *
*/
public final static class CLInvalidBufferSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_BUFFER_SIZE;
- public CLInvalidBufferSizeException(String message) {
+ public CLInvalidBufferSizeException(final String message) {
super(CL.CL_INVALID_BUFFER_SIZE, "CL_INVALID_BUFFER_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_MIP_LEVEL errors.
- *
+ *
*/
public final static class CLInvalidMipLevelException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_MIP_LEVEL;
- public CLInvalidMipLevelException(String message) {
+ public CLInvalidMipLevelException(final String message) {
super(CL.CL_INVALID_MIP_LEVEL, "CL_INVALID_MIP_LEVEL", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_GLOBAL_WORK_SIZE errors.
- *
+ *
*/
public final static class CLInvalidGlobalWorkSizeException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_GLOBAL_WORK_SIZE;
- public CLInvalidGlobalWorkSizeException(String message) {
+ public CLInvalidGlobalWorkSizeException(final String message) {
super(CL.CL_INVALID_GLOBAL_WORK_SIZE, "CL_INVALID_GLOBAL_WORK_SIZE", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_PROPERTY errors.
- *
+ *
*/
public final static class CLInvalidPropertyException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_INVALID_PROPERTY;
- public CLInvalidPropertyException(String message) {
+ public CLInvalidPropertyException(final String message) {
super(CL.CL_INVALID_PROPERTY, "CL_INVALID_PROPERTY", message);
}
}
/**
* {@link CLException} thrown on CL.CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR errors.
- *
+ *
*/
public final static class CLInvalidGLSharegroupReferenceKhrException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CLGL.CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR;
- public CLInvalidGLSharegroupReferenceKhrException(String message) {
+ public CLInvalidGLSharegroupReferenceKhrException(final String message) {
super(CLGL.CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR, "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR", message);
}
}
/**
* {@link CLException} thrown on CL.CL_PLATFORM_NOT_FOUND_KHR errors.
- *
+ *
*/
public final static class CLPlatformNotFoundKhrException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_PLATFORM_NOT_FOUND_KHR;
- public CLPlatformNotFoundKhrException(String message) {
- super(CL.CL_PLATFORM_NOT_FOUND_KHR, "CL_PLATFORM_NOT_FOUND_KHR", message);
+ public CLPlatformNotFoundKhrException(final String message) {
+ super(CLPlatformBinding.CL_PLATFORM_NOT_FOUND_KHR, "CL_PLATFORM_NOT_FOUND_KHR", message);
}
}
/**
* {@link CLException} thrown on CL.CL_MISALIGNED_SUB_BUFFER_OFFSET errors.
- *
+ *
*/
public final static class CLMisalignedSubBufferOffsetException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_MISALIGNED_SUB_BUFFER_OFFSET;
- public CLMisalignedSubBufferOffsetException(String message) {
+ public CLMisalignedSubBufferOffsetException(final String message) {
super(CL.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.
- *
+ *
*/
public final static class CLExecStatusErrorForEventsInWaitListException extends CLException {
private static final long serialVersionUID = CLException.serialVersionUID+CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST;
- public CLExecStatusErrorForEventsInWaitListException(String message) {
+ public CLExecStatusErrorForEventsInWaitListException(final String message) {
super(CL.CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST, "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST", message);
}
}