You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2013/10/22 03:19:42 UTC

[jira] [Updated] (HIVE-5603) several classes call initCause which masks lower level exceptions

     [ https://issues.apache.org/jira/browse/HIVE-5603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-5603:
--------------------------------

    Summary: several classes call initCause which masks lower level exceptions  (was: AuthorizationPreEventListener masks lower level exception with IllegalStateException)

> several classes call initCause which masks lower level exceptions
> -----------------------------------------------------------------
>
>                 Key: HIVE-5603
>                 URL: https://issues.apache.org/jira/browse/HIVE-5603
>             Project: Hive
>          Issue Type: Bug
>          Components: Authorization
>    Affects Versions: 0.12.0
>            Reporter: Thejas M Nair
>
> AuthorizationPreEventListener has following code that will result in "Can't overwrite exception" being thrown, and also mask the lower level exception.
> {code}
>   private InvalidOperationException invalidOperationException(Exception e) {
>     InvalidOperationException ex = new InvalidOperationException();
>     ex.initCause(e.getCause());
>     return ex;
>   }
>   private MetaException metaException(HiveException e) {
>     MetaException ex =  new MetaException(e.getMessage());
>     ex.initCause(e);
>     return ex;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)