[R2DBC-46] Add sql to R2DBC exception hierarchy Created: 2022-01-28  Updated: 2022-02-04  Resolved: 2022-02-04

Status: Closed
Project: MariaDB Connector/R2DBC
Component/s: Specification
Affects Version/s: None
Fix Version/s: 1.1.2

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5d
Original Estimate: 0.5d


 Description   

0.9.0-RC1 addition:
When running SQL statements that terminate with an exception, it is difficult to determine what specific SQL statement has lead to the exception. While calling code can somewhat reason about it, it would make sense to attach the offending SQL statement to the actual exception.

Introduce a final String sql field and getSql method to R2dbcException that can be nullable. Retrofit R2dbcBadGrammarException.offendingSql to remove the field and redirect getOffendingSql() to R2dbcException.getSql().


Generated at Thu Feb 08 03:32:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.