Class SQLExecutorExceptionHandler
java.lang.Object
org.apache.shardingsphere.infra.executor.sql.execute.engine.SQLExecutorExceptionHandler
SQL executor exception handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleException(Exception exception) Handle exception.static booleanGet throw exception if error occur or not.static voidsetExceptionThrown(boolean isExceptionThrown) Set throw exception if error occur or not.
-
Constructor Details
-
SQLExecutorExceptionHandler
public SQLExecutorExceptionHandler()
-
-
Method Details
-
setExceptionThrown
public static void setExceptionThrown(boolean isExceptionThrown) Set throw exception if error occur or not.- Parameters:
isExceptionThrown- throw exception if error occur or not
-
isExceptionThrown
public static boolean isExceptionThrown()Get throw exception if error occur or not.- Returns:
- throw exception if error occur or not
-
handleException
Handle exception.- Parameters:
exception- to be handled exception- Throws:
SQLException- SQL exception
-