public class LogUtil
extends java.lang.Object
Constructor and Description |
---|
LogUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
logSQLExceptionChain(org.slf4j.Logger logger,
java.sql.SQLException ex)
Log the chained exceptions of an SQLException.
|
public static void logSQLExceptionChain(org.slf4j.Logger logger, java.sql.SQLException ex)
SQLException.getNextException()
instead of Throwable.getCause()
to chain exceptions. This methods
log the getNextException
chain.
Note! This method doesn't log the ex
exception. It only
logs the chained exceptions. If there are more than 10 nested exception
it only logs the first 10.
logger
- The logger to useex
- The SQL exception