Class SQLExecutorExceptionHandler

java.lang.Object
org.apache.shardingsphere.infra.executor.sql.execute.engine.SQLExecutorExceptionHandler

public final class SQLExecutorExceptionHandler extends Object
SQL executor exception handler.
  • 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

      public static void handleException(Exception exception) throws SQLException
      Handle exception.
      Parameters:
      exception - to be handled exception
      Throws:
      SQLException - SQL exception