Message-ID: From: "ivan-ra (@ivan-ra)" To: "pgjdbc/pgjdbc" Date: Wed, 20 Aug 2025 19:24:02 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3779: SQLException subclasses support In-Reply-To: References: List-Id: X-GitHub-Author-Login: ivan-ra X-GitHub-Comment-Id: 3207767431 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3779 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3779#issuecomment-3207767431 Content-Type: text/plain; charset=utf-8 I was thinking about the driver wrapper: ``` my.awesome.Driver extends org.postgresql.Driver ``` It could also produce proxy classes for Connection, Statement, etc that would throw the required exceptions (at the moment i only want to catch only SQLTimeoutException). In the application configuration it would be enough to replace driver class name. Probably writing such a wrapper will really not be trivial. Mapper utility is good suggestion