Search in sources :

Example 1 with DataReaderException

use of com.tagtraum.perf.gcviewer.imp.DataReaderException in project GCViewer by chewiebug.

the class AbstractGCModelLoaderImpl method doInBackground.

@Override
protected GCModel doInBackground() throws Exception {
    setProgress(0);
    final GCModel result;
    try {
        result = loadGcModel();
    } catch (DataReaderException | RuntimeException e) {
        Logger logger = getGcResource().getLogger();
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "Failed to load GCModel from " + getGcResource().getResourceName(), e);
        }
        throw e;
    }
    return result;
}
Also used : DataReaderException(com.tagtraum.perf.gcviewer.imp.DataReaderException) Logger(java.util.logging.Logger) GCModel(com.tagtraum.perf.gcviewer.model.GCModel)

Aggregations

DataReaderException (com.tagtraum.perf.gcviewer.imp.DataReaderException)1 GCModel (com.tagtraum.perf.gcviewer.model.GCModel)1 Logger (java.util.logging.Logger)1