Example usage for java.security AccessControlException printStackTrace

List of usage examples for java.security AccessControlException printStackTrace

Introduction

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

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.eclipse.emf.emfstore.client.test.SetupHelper.java

/**
 * log in the test server.//from   w w  w.  j  a  v a  2s  . c  o  m
 */
public void loginServer() {
    if (usersession == null) {
        usersession = ModelFactory.eINSTANCE.createUsersession();

        ServerInfo serverInfo = getServerInfo();
        usersession.setServerInfo(serverInfo);
        usersession.setUsername("super");
        usersession.setPassword("super");
    }

    if (!usersession.isLoggedIn()) {
        try {
            usersession.logIn();
        } catch (AccessControlException e) {
            e.printStackTrace();
        } catch (EmfStoreException e) {
            e.printStackTrace();
        }
    }
}