/** * Handles any exception that might occur in the context of this element to * ensure that templates are not disturbed.<p> * * @param t the Throwable that was caught */ protected void handleException(Throwable t) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.LOG_ERR_JSP_BEAN_0), t); } if (!(m_isSupressingExceptions || getRequestContext().getCurrentProject().isOnlineProject())) { if (LOG.isDebugEnabled()) { // no stack trace needed since it was already logged with the "error" log message above LOG.debug( Messages.get().getBundle().key(Messages.LOG_DEBUG_INTERRUPTED_EXCEPTION_1, getClass().getName())); } String uri = null; Throwable u = getController().getThrowable(); if (u != null) { uri = getController().getThrowableResourceUri(); } else { uri = getRequestContext().getUri(); } throw new CmsRuntimeException( Messages.get().container(Messages.ERR_RUNTIME_1, (uri != null) ? uri : getClass().getName()), t); } }
/** * Handles any exception that might occur in the context of this element to * ensure that templates are not disturbed.<p> * * @param t the Throwable that was caught */ protected void handleException(Throwable t) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.LOG_ERR_JSP_BEAN_0), t); } if (!(m_isSupressingExceptions || getRequestContext().currentProject().isOnlineProject())) { if (LOG.isDebugEnabled()) { // no stack trace needed since it was already logged with the "error" log message above LOG.debug(Messages.get().getBundle().key( Messages.LOG_DEBUG_INTERRUPTED_EXCEPTION_1, getClass().getName())); } String uri = null; Throwable u = getController().getThrowable(); if (u != null) { uri = getController().getThrowableResourceUri(); } else { uri = getRequestContext().getUri(); } throw new CmsRuntimeException(Messages.get().container( Messages.ERR_RUNTIME_1, (uri != null) ? uri : getClass().getName()), t); } }