first pass of well-formatted tribble exceptions
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4352 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
edaa278edd
commit
70f03a7113
|
|
@ -50,7 +50,7 @@ import java.util.*;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author aaron
|
* @author aaron
|
||||||
*
|
* `
|
||||||
* Class RMDTrackBuilder
|
* Class RMDTrackBuilder
|
||||||
*
|
*
|
||||||
* This class keeps track of the available codecs, and knows how to put together a track of
|
* This class keeps track of the available codecs, and knows how to put together a track of
|
||||||
|
|
@ -168,8 +168,8 @@ public class RMDTrackBuilder extends PluginManager<FeatureCodec> {
|
||||||
logger.info("Attempting to blindly load " + inputFile + " as a tabix indexed file");
|
logger.info("Attempting to blindly load " + inputFile + " as a tabix indexed file");
|
||||||
try {
|
try {
|
||||||
return new Pair<BasicFeatureSource, SAMSequenceDictionary>(BasicFeatureSource.getFeatureSource(inputFile.getAbsolutePath(), createCodec(targetClass, name)),null);
|
return new Pair<BasicFeatureSource, SAMSequenceDictionary>(BasicFeatureSource.getFeatureSource(inputFile.getAbsolutePath(), createCodec(targetClass, name)),null);
|
||||||
} catch (IOException e) {
|
} catch (TribbleException e) {
|
||||||
throw new UserException.CouldNotReadInputFile(inputFile, "Unable to create feature reader from file", e);
|
throw new UserException(e.getTribbleExceptionMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -210,10 +210,10 @@ public class RMDTrackBuilder extends PluginManager<FeatureCodec> {
|
||||||
index,
|
index,
|
||||||
createCodec(targetClass, name)),
|
createCodec(targetClass, name)),
|
||||||
dictFromIndex);
|
dictFromIndex);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (TribbleException e) {
|
||||||
throw new UserException.CouldNotReadInputFile(inputFile, "Unable to create reader with file", e);
|
throw new UserException(e.getTribbleExceptionMessage());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new UserException("Unable to make the index file for " + inputFile, e);
|
throw new UserException("Unable to create the index file for " + inputFile, e);
|
||||||
}
|
}
|
||||||
return reader;
|
return reader;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue