Skip to content
Snippets Groups Projects
Commit 18aadb1a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

small improvement on error reporting

parent 0dd0663a
No related branches found
No related tags found
No related merge requests found
......@@ -747,7 +747,7 @@ public class BigFileCache {
if (e.getCause() instanceof URISyntaxException) {
throw (URISyntaxException) e.getCause();
} else if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
throw new IOException((IOException) e.getCause());
} else {
throw new InvalidStateException(e);
}
......
......@@ -383,9 +383,9 @@ public abstract class AbstractReferenceGenomeConnector extends CachableInterface
if (e.getCause() instanceof URISyntaxException) {
throw (URISyntaxException) e.getCause();
} else if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
throw new IOException((IOException) e.getCause());
} else if (e.getCause() instanceof ReferenceGenomeConnectorException) {
throw (ReferenceGenomeConnectorException) e.getCause();
throw new ReferenceGenomeConnectorException((ReferenceGenomeConnectorException) e.getCause());
} else {
throw new InvalidStateException(e);
}
......
......@@ -37,4 +37,8 @@ public class ReferenceGenomeConnectorException extends Exception {
super(message);
}
public ReferenceGenomeConnectorException(Exception cause) {
super(cause);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment