Example usage for java.security AccessControlException initCause

List of usage examples for java.security AccessControlException initCause

Introduction

In this page you can find the example usage for java.security AccessControlException initCause.

Prototype

public synchronized Throwable initCause(Throwable cause) 

Source Link

Document

Initializes the cause of this throwable to the specified value.

Usage

From source file:org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider.java

private static AccessControlException accessControlException(Exception e) {
    AccessControlException ace = new AccessControlException(e.getMessage());
    ace.initCause(e);
    return ace;/*from w ww.j av  a  2s  . c om*/
}