/** * Set a linked exception. * * @deprecated use initCause * @param linkedException the linked exception */ public void setLinkedException(Exception linkedException) { this.linkedException = linkedException; initCause(linkedException); } }
/** * Set a linked exception. * * @deprecated use initCause * @param linkedException the linked exception */ public void setLinkedException(Exception linkedException) { this.linkedException = linkedException; initCause(linkedException); } }
/** * @deprecated */ public void setLinkedException(Exception exn) { initCause(exn); } }
/** * Set a linked exception. * * @deprecated use initCause * @param linkedException the linked exception */ public void setLinkedException(Exception linkedException) { this.linkedException = linkedException; initCause(linkedException); } }
/** * Close the AQ native session and the database connection. */ public void close() throws ResourceException { try { this.getMongo().close(); } catch (Exception exception) { ResourceException resourceException = new ResourceException(exception.toString()); resourceException.initCause(exception); throw resourceException; } }
/** * Close the AQ native session and the database connection. */ public void close() throws ResourceException { try { this.db.getMongo().close(); } catch (Exception exception) { ResourceException resourceException = new ResourceException(exception.toString()); resourceException.initCause(exception); throw resourceException; } }
re.getMessage() + " Please check the server.log for more details."); e.initCause(re); throw e; } finally {
"pingpool.name_not_bound", poolInfo); ResourceException e = new ResourceException(l10nMsg + poolInfo); e.initCause(ne); throw e;
private String getDescriptor(String key) throws ResourceException { try { return mcf.getRepository().getDescriptor(key); } catch (RepositoryException e) { log("Failed to access the repository", e); ResourceException exception = new ResourceException( "Failed to access the repository: " + e.getMessage()); exception.initCause(e); throw exception; } }
private String getDescriptor(String key) throws ResourceException { try { return mcf.getRepository().getDescriptor(key); } catch (RepositoryException e) { log("Failed to access the repository", e); ResourceException exception = new ResourceException( "Failed to access the repository: " + e.getMessage()); exception.initCause(e); throw exception; } }
} catch (Exception exception) { ResourceException resourceException = new ResourceException(exception); resourceException.initCause(exception); throw resourceException;
resourceException.initCause(exception); throw resourceException;
re.initCause( se ); throw re;
/** * Create a new session. */ private Session openSession() throws ResourceException { try { Session session = mcf.getRepository().login( cri.getCredentials(), cri.getWorkspace()); log("Created session (" + session + ")"); return session; } catch (RepositoryException e) { log("Failed to create session", e); ResourceException exception = new ResourceException( "Failed to create session: " + e.getMessage()); exception.initCause(e); throw exception; } }
/** * Create a new session. */ private Session openSession() throws ResourceException { try { Session session = mcf.getRepository().login( cri.getCredentials(), cri.getWorkspace()); log("Created session (" + session + ")"); return session; } catch (RepositoryException e) { log("Failed to create session", e); ResourceException exception = new ResourceException( "Failed to create session: " + e.getMessage()); exception.initCause(e); throw exception; } }
_logger.log(Level.WARNING, "jdbc.pool_not_reachable", l10nMsg); ResourceException e = new ResourceException(l10nMsg); e.initCause(creAgain); throw e; String l10nMsg = localStrings.getString("pingpool.cannot_obtain_mcf", poolInfo); ResourceException e = new ResourceException(l10nMsg); e.initCause(re); throw e; String l10nMsg = localStrings.getString("pingpool.name_not_bound", poolInfo); ResourceException e = new ResourceException(l10nMsg + poolInfo); e.initCause(ne); throw e;
resourceException.initCause(exception); throw resourceException;
resourceException.initCause(exception); throw resourceException;
resourceException.initCause(exception); throw resourceException;
resourceException.initCause(exception); throw resourceException;