diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:19:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 12:27:15 +0200 |
commit | 9341bf3dc38b2cc117ffbe12ff057511ed6e046d (patch) | |
tree | 3a54c1764eb0e3106695292a737944507d3b4fb6 /filter | |
parent | b2f69f626409442d1f0ca5049b946946ce9b01d8 (diff) |
java: when rethrowing, store the original exception
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
Diffstat (limited to 'filter')
-rw-r--r-- | filter/qa/complex/filter/detection/typeDetection/Helper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/qa/complex/filter/detection/typeDetection/Helper.java b/filter/qa/complex/filter/detection/typeDetection/Helper.java index fb7a7ecddff8..83026fd75997 100644 --- a/filter/qa/complex/filter/detection/typeDetection/Helper.java +++ b/filter/qa/complex/filter/detection/typeDetection/Helper.java @@ -344,7 +344,7 @@ public class Helper { String fileURL = m_hFileURLs.get(fileAlias).toString(); return utils.getFullURL(ensureEndingFileSep(m_sTestDocPath) + fileURL); } catch (NullPointerException e){ - throw new FileAliasNotFoundException(fileAlias); + throw new FileAliasNotFoundException(fileAlias, e); } } @@ -359,7 +359,7 @@ public class Helper { try{ return m_hFileTypes.get(fileAlias).toString(); } catch (NullPointerException e){ - throw new FileAliasNotFoundException(fileAlias); + throw new FileAliasNotFoundException(fileAlias, e); } } @@ -425,7 +425,7 @@ class FileAliasNotFoundException extends java.lang.Exception{ /** throws error message with wrong alias name * @param fileAlias the alias name */ - public FileAliasNotFoundException(String fileAlias){ - super("Could not get '"+fileAlias +"'"); + public FileAliasNotFoundException(String fileAlias, Throwable cause){ + super("Could not get '"+fileAlias +"'", cause); } } |