From d2050aea14e6ab1a6429eab56f0612c2deb6184f Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 8 Nov 2009 21:48:29 +0100 Subject: improved Exception handling in CLProgram and CLKernel. introduced CLResource interface for releasable resources. CLProgram is now rebuildable. --- src/com/mbien/opencl/CLException.java | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (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 c080b164..db4426f8 100644 --- a/src/com/mbien/opencl/CLException.java +++ b/src/com/mbien/opencl/CLException.java @@ -6,20 +6,23 @@ package com.mbien.opencl; */ public class CLException extends RuntimeException { - public CLException(Throwable cause) { - super(cause); - } - - public CLException(String message, Throwable cause) { - super(message, cause); - } - - public CLException(String message) { - super(message); - } + public final int errorcode; + +// public CLException(Throwable cause) { +// super(cause); +// } +// +// public CLException(String message, Throwable cause) { +// super(message, cause); +// } +// +// public CLException(String message) { +// super(message); +// } public CLException(int error, String message) { super(identifyError(error) + ": " + message); + errorcode = error; } public static final void checkForError(int status, String message) { -- cgit v1.2.3