if (e != null) {
// Throw a RuntimeException with the Exception's
// message concatenated with the stack trace.
String message = JaiI18N.getString("SunTileScheduler7");
sendExceptionToListener(message,
new ImagingException(message, e));
/*
throw new RuntimeException(e.getMessage()+"\n"+
getStackTraceString(e));
*/
}
}
}
} else { // numThreads == 0
Request request = null;
if(!isBlocking && !isPrefetch) {
request = new Request(this, owner, tileIndices, listeners);
returnValue = request;
}
// no workers; sequentially compute tiles in main thread
Exception e = compute(owner, tileIndices, tiles, 0, numTiles,
request);
// Throw a RuntimeException with the Exception's
// message concatenated with the stack trace.
if(e != null) {
String message = JaiI18N.getString("SunTileScheduler7");
sendExceptionToListener(message,
new ImagingException(message, e));
/*
throw new RuntimeException(e.getMessage()+"\n"+
getStackTraceString(e));
*/
}