jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcBaseRecordWriter.java
void handleSqlException(SQLException e) throws StageException {
    String formattedError = jdbcUtil.formatSqlException(e);
    LOG.error(formattedError, e);
    throw new StageException(JdbcErrors.JDBC_14, e.getSQLState(), e.getErrorCode(), e.getMessage(), formattedError, e);
  }
void handleSqlException(SQLException e) throws StageException {
    String formattedError = jdbcUtil.formatSqlException(e);
    LOG.error(formattedError, e);
    throw new StageException(JdbcErrors.JDBC_14, e.getSQLState(), e.getErrorCode(), e.getMessage(), formattedError, e);
  }
This is an error that is not due to bad input record and should throw a StageException
once we format the error.

@param e SQLException
@throws StageException