LENS-1245 : Fix error message in LensAPIException
Project: http://git-wip-us.apache.org/repos/asf/lens/repo Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/1b032694 Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/1b032694 Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/1b032694 Branch: refs/heads/master Commit: 1b0326948b43190370d9c32ac14cb521a449479d Parents: fbe44ff Author: Amareshwari Sriramadasu <[email protected]> Authored: Thu Aug 4 11:04:10 2016 +0530 Committer: Amareshwari Sriramadasu <[email protected]> Committed: Thu Aug 4 11:04:39 2016 +0530 ---------------------------------------------------------------------- .../java/org/apache/lens/client/exceptions/LensAPIException.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lens/blob/1b032694/lens-client/src/main/java/org/apache/lens/client/exceptions/LensAPIException.java ---------------------------------------------------------------------- diff --git a/lens-client/src/main/java/org/apache/lens/client/exceptions/LensAPIException.java b/lens-client/src/main/java/org/apache/lens/client/exceptions/LensAPIException.java index fcc53c5..13fc7e8 100644 --- a/lens-client/src/main/java/org/apache/lens/client/exceptions/LensAPIException.java +++ b/lens-client/src/main/java/org/apache/lens/client/exceptions/LensAPIException.java @@ -45,4 +45,8 @@ public class LensAPIException extends Exception { public String getLensAPIRequestId() { return this.errorResult.getId(); } + + public String getMessage() { + return getLensAPIErrorMessage(); + } }
