Example usage for java.rmi RemoteException initCause

List of usage examples for java.rmi RemoteException initCause

Introduction

In this page you can find the example usage for java.rmi RemoteException 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:edu.clemson.cs.nestbed.server.management.configuration.ProgramProfilingSymbolManagerImpl.java

public void deleteProfilingSymbolWithID(int programSymbolID) throws RemoteException {
    log.info("Request to delete ProgramProfilingSymbol with " + "programSymbolID: " + programSymbolID);

    try {/*from   w w w  .  j  a v  a 2  s  . c  o  m*/
        List<ProgramProfilingSymbol> list;
        list = new ArrayList<ProgramProfilingSymbol>(progProfSymbols.values());

        for (ProgramProfilingSymbol i : list) {
            if (i.getProgramSymbolID() == programSymbolID) {
                deleteProfilingSymbol(i.getID());
            }
        }
    } catch (RemoteException ex) {
        throw ex;
    } catch (Exception ex) {
        log.error("Exception in deleteProfilingSymbolWithID");

        RemoteException rex = new RemoteException(ex.toString());
        rex.initCause(ex);
        throw rex;
    }
}

From source file:edu.clemson.cs.nestbed.server.management.configuration.ProgramProfilingSymbolManagerImpl.java

public void deleteProfilingSymbolWithProjectDepConfID(int pdcID) throws RemoteException {
    log.info("Request to delete ProgramProfilingSymbol with " + "projectDeploymentConfigurationID: " + pdcID);

    try {//from   w  w  w  .ja va  2 s . c  o  m
        List<ProgramProfilingSymbol> list;
        list = new ArrayList<ProgramProfilingSymbol>(progProfSymbols.values());

        for (ProgramProfilingSymbol i : list) {
            if (i.getProjectDeploymentConfigurationID() == pdcID) {
                deleteProfilingSymbol(i.getID());
            }
        }
    } catch (RemoteException ex) {
        throw ex;
    } catch (Exception ex) {
        log.error("Exception in deleteProfilingSymbolWithID");

        RemoteException rex = new RemoteException(ex.toString());
        rex.initCause(ex);
        throw rex;
    }
}