public static SQLException toSqlState(Exception cause) {
        return toSqlState( null, null, cause);
    }
Convert a {@link Exception} to a {@link SQLException}.
@param cause {@link Exception} to convert
@return Converted {@link SQLException}
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/ExceptionUtils.java