Class DefaultSQLExceptionHandler
- java.lang.Object
-
- cc.carm.lib.easysql.api.function.defaults.DefaultSQLExceptionHandler
-
- All Implemented Interfaces:
SQLExceptionHandler,java.util.function.BiConsumer<java.sql.SQLException,SQLAction<?>>
public class DefaultSQLExceptionHandler extends java.lang.Object implements SQLExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultSQLExceptionHandler(java.util.logging.Logger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.sql.SQLException exception, SQLAction<?> sqlAction)static @NotNull SQLExceptionHandlerget(java.util.logging.Logger logger)static @Nullable SQLExceptionHandlergetCustomHandler()protected java.util.logging.LoggergetLogger()static voidsetCustomHandler(@Nullable SQLExceptionHandler handler)
-
-
-
Method Detail
-
setCustomHandler
public static void setCustomHandler(@Nullable @Nullable SQLExceptionHandler handler)
-
getCustomHandler
@Nullable public static @Nullable SQLExceptionHandler getCustomHandler()
-
get
@NotNull public static @NotNull SQLExceptionHandler get(java.util.logging.Logger logger)
-
getLogger
protected java.util.logging.Logger getLogger()
-
-