[FEATURE REQUEST] Message handler - To intercept messages and potentially downgrade any SQLException to SQLWarning #1299
Labels
Enhancement
An enhancement to the driver. Lower priority than bugs.
Message handler - To intercept messages and potentially downgrade any SQLException to SQLWarning
This can for example be used to:
I'm not sure where the best entry point for adding this functionality, but possibly the TDS Parser, onError() then call the installed message handler (for the Connection)...
Below is an example of Sybase jConnect implementation of this:
FYI: Below is the interface used in jConnect... if something similar is needed...
and normally a SybSQLException also implemets a interface called
EedInfo
, which basically holds the same methods as https://github.com/microsoft/mssql-jdbc/blob/d4362039923a77caa080152d75d18fc8d1c7ff88/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerError.javaThe text was updated successfully, but these errors were encountered: