Lines Matching defs:cause

283      * If {@code cause} parameter is not {@code null}, it is logged as well and
284 * {@code exception} original cause is initialized with instance referenced
285 * by {@code cause} parameter.
289 * @param cause initial cause of the exception that should be logged as well
290 * and set as {@code exception}'s original cause. May be {@code null}.
294 public <T extends Throwable> T logSevereException(final T exception, final Throwable cause) {
296 if (cause == null) {
299 exception.initCause(cause);
300 logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), exception.getMessage(), cause);
312 * cause is logged as well (if exists). This may be used in cases when
314 * cause. In such case you do not need to use
316 * method version but you might still want to log the original cause as well.
320 * @param logCause deterimnes whether initial cause of the exception should
356 * If {@code cause} parameter is not {@code null}, it is logged as well and
357 * {@code exception} original cause is initialized with instance referenced
358 * by {@code cause} parameter.
362 * @param cause initial cause of the exception that should be logged as well
363 * and set as {@code exception}'s original cause. May be {@code null}.
368 public <T extends Throwable> T logException(final T exception, final Throwable cause, final Level level) {
370 if (cause == null) {
373 exception.initCause(cause);
374 logger.logp(level, componentClassName, getCallerMethodName(), exception.getMessage(), cause);
386 * cause is logged as well (if exists). This may be used in cases when
388 * cause. In such case you do not need to use
389 * {@link #logException(Throwable, Throwable, Level) logException(exception, cause, level)}
390 * method version but you might still want to log the original cause as well.
394 * @param logCause deterimnes whether initial cause of the exception should