From e4e7dc4e7a63206c091cd3288adc6a7346f74191 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 1 Feb 2010 01:09:18 +0100 Subject: trivial bugfixes, typo and javadoc warning fixes. began to switch to gluegen's libloading infrastructure. added CL extensions accessors to CLPlatform. optimized isFooEnabled() methods for CLCommandQueue. --- src/com/mbien/opencl/CLException.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/mbien/opencl/CLException.java') diff --git a/src/com/mbien/opencl/CLException.java b/src/com/mbien/opencl/CLException.java index 3703f235..4ca216c4 100644 --- a/src/com/mbien/opencl/CLException.java +++ b/src/com/mbien/opencl/CLException.java @@ -12,6 +12,11 @@ public class CLException extends RuntimeException { private final static String ERROR_CODE_DOC = "http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/errors.html"; + public CLException(String message) { + super(message); + errorcode = 0; + } + public CLException(int error, String message) { super(message + "\nerror: " + identifyError(error) + " (man page: "+ERROR_CODE_DOC+")"); errorcode = error; -- cgit v1.2.3