public static void checkCLError(int errcode) {
        if (errcode != CL_SUCCESS) {
            throw new OpenCLException(getErrcodeName(errcode));
        }
    }
Checks the specified {@code errcode} and throws an
{@link OpenCLException} if it's not equal to {@link CL10#CL_SUCCESS}.

@param errcode the {@code errcode} to check

@throws OpenCLException
jme3-lwjgl3/src/main/java/com/jme3/opencl/lwjgl/info/CLUtil.java