Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1187

Use different exception type for connection timeouts

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 3.5.0
    • Other
    • None

    Description

      If the connection times out when it is opened, Connector/J throws a SqlException, the same as if it were any other problem. However, this requires users to parse the exception method to determine the cause, which is sub-optimal

      One possible solution may be to initiate a TCP connection first and then do the SQL connection.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            Paul.rothrock@mariadb.com Paul Rothrock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.