Made into UserException with better error message

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5977 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2011-06-12 03:38:52 +00:00
parent 95f3da1126
commit 1f4469976e
1 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ import net.sf.samtools.GATKChunk;
import net.sf.samtools.util.CloseableIterator; import net.sf.samtools.util.CloseableIterator;
import org.broadinstitute.sting.utils.GenomeLoc; import org.broadinstitute.sting.utils.GenomeLoc;
import org.broadinstitute.sting.utils.exceptions.ReviewedStingException; import org.broadinstitute.sting.utils.exceptions.ReviewedStingException;
import org.broadinstitute.sting.utils.exceptions.UserException;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -267,7 +268,7 @@ public class BAMSchedule implements CloseableIterator<BAMScheduleEntry> {
scheduleFileChannel = new RandomAccessFile(scheduleFile,"rw").getChannel(); scheduleFileChannel = new RandomAccessFile(scheduleFile,"rw").getChannel();
} }
catch(IOException ex) { catch(IOException ex) {
throw new ReviewedStingException("Unable to create BAM schedule file.",ex); throw new UserException("Unable to create a temporary BAM schedule file. Please make sure Java can write to the default temp directory or use -Djava.io.tmpdir= to instruct it to use a different temp directory instead.",ex);
} }
scheduleFile.deleteOnExit(); scheduleFile.deleteOnExit();