public <T extends Throwable> T throwing(T throwable) {
        if (instanceofLAL) {
            ((LocationAwareLogger) logger).log(THROWING_MARKER, FQCN, LocationAwareLogger.ERROR_INT, "throwing", null, throwable);
        }
        return throwable;
    }
Log an exception being thrown. The generated log event uses Level ERROR.

@param throwable the exception being caught.
slf4j-ext/src/main/java/org/slf4j/ext/XLogger.java