Proper exception chaining for troubleshooting Sendu's issue.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3556 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2010-06-15 01:38:36 +00:00
parent 8defb30796
commit 8a895f481f
1 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<FeatureReader, Location
return new SeekableRODIterator(new FeatureToGATKFeatureIterator(resource.iterator(),rod.getName()));
}
} catch (IOException e) {
throw new StingException("Unable to create iterator for rod named " + rod.getName());
throw new StingException("Unable to create iterator for rod named " + rod.getName(),e);
}
}
@ -223,7 +223,7 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<FeatureReader, Location
try {
resource.close();
} catch (IOException e) {
throw new StingException("Unable to close reader for rod named " + rod.getName());
throw new StingException("Unable to close reader for rod named " + rod.getName(),e);
}
}
}