List of usage examples for java.rmi RemoteException initCause
public synchronized Throwable initCause(Throwable cause)
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; } }