/** * Reports an error to the given report (if available) and to the OpenCms log file.<p> * * @param report the report to write the error to * @param message the message to write to the report / log * @param throwable the exception to write to the report / log * * @throws CmsException if the <code>throwable</code> parameter is not <code>null</code> and a {@link CmsException} * @throws CmsVfsException if the <code>throwable</code> parameter is not <code>null</code> and no {@link CmsException} */ public void report(I_CmsReport report, CmsMessageContainer message, Throwable throwable) throws CmsVfsException, CmsException { if (report != null) { if (message != null) { report.println(message, I_CmsReport.FORMAT_ERROR); } if (throwable != null) { report.println(throwable); } } throwException(message, throwable); }
/** * Reports an error to the given report (if available) and to the OpenCms log file.<p> * * @param report the report to write the error to * @param message the message to write to the report / log * @param throwable the exception to write to the report / log * * @throws CmsException if the throwable parameter is not null and a CmsException * @throws CmsVfsException if the throwable parameter is not null and no CmsException */ public void report(I_CmsReport report, CmsMessageContainer message, Throwable throwable) throws CmsVfsException, CmsException { if (report != null) { if (message != null) { report.println(message, I_CmsReport.FORMAT_ERROR); } if (throwable != null) { report.println(throwable); } } throwException(message, throwable); }