/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsResourceInitException(container, cause); }
throws IOException, CmsResourceInitException { CmsResourceInitException resInitException = new CmsResourceInitException(getClass()); if (res != null) { resInitException.setClearErrors(true); if (isPermanent) { res.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
if (e.isClearErrors()) { tmpException = null; clearErrors = true;
/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsResourceInitException(container, cause); }
LOG.error(msg.key(), e); throw new CmsResourceInitException(msg, e); } finally { CmsResourceInitException resInitException = new CmsResourceInitException(getClass()); resInitException.setClearErrors(true); res.sendRedirect(redirectLink); throw resInitException; } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); throw new CmsResourceInitException(getClass());
LOG.error(msg, e); throw new CmsResourceInitException(msg, e); } finally {
CmsResourceInitException initEx = new CmsResourceInitException(CmsPdfResourceHandler.class); initEx.setClearErrors(true); throw initEx;
throw new CmsResourceInitException(e.getMessageContainer(), e); } finally {
CmsResourceInitException initEx = new CmsResourceInitException(CmsPdfResourceHandler.class); initEx.setClearErrors(true); throw initEx;
throw new CmsResourceInitException(e.getMessageContainer(), e); } finally {
LOG.error(Messages.get().getBundle().key(Messages.ERR_HISTORYRESOURCE_2, uri, version)); throw new CmsResourceInitException(Messages.get().container( Messages.ERR_SHOWVERSION_2, uri,
LOG.error(Messages.get().getBundle().key(Messages.ERR_HISTORYRESOURCE_2, uri, version)); throw new CmsResourceInitException( Messages.get().container(Messages.ERR_SHOWVERSION_2, uri, version), e);
CmsMessageContainer msg = Messages.get().container(Messages.ERR_RESCOURCE_NOT_FOUND_1, uri); LOG.error(msg.key(), e); throw new CmsResourceInitException(msg, e);
uri); LOG.error(e.getLocalizedMessage(), e); throw new CmsResourceInitException(msg, e);