question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement ExceptionFactory

See original GitHub issue

The current project use CUSTOM exceptions that inherits from R2dbcException, that does NOT conform to the r2dbc specification. See https://github.com/r2dbc/r2dbc-spi/pull/53.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mp911decommented, May 30, 2019

For MySQL, probably SQL state prefixes (23 for constraint validations, 42 SQL grammar errors) are the best bet for mapping.

You might want to cross-check against Spring’s Exception mapping.

Here’s R2DBC MS SQL’s ExceptionFactory that might contain a useful approach for exception mapping.

0reactions
mirromutthcommented, Jul 8, 2019

Completed ExceptionFactory general mappings, should keep watching more error codes. This issue would be close.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExceptionFactory (Apache Commons Collections 4.4 API)
public final class ExceptionFactory<T> extends Object implements Factory<T>, Serializable. Factory implementation that always throws an exception.
Read more >
org.odata4j.exceptions.ExceptionFactory.createException java ...
Creates an instance of a specific sub-class of ODataProducerException. Popular methods of ExceptionFactory. getStatusCode. Gets the status code this factory ...
Read more >
ExceptionFactory
The Okta identity platform enables configurable SAML 2.0 authentication, supporting federated access as well as group management and single logout processing.
Read more >
How to write an exception factory in Java - Stack Overflow
1 Answer 1 ... It's possible to edit the stack trace, removing unneeded elements. If all exceptions' constructors need the same data, use...
Read more >
Building an Exception Factory - Sully
It also supports providing a custom exception factory method for use. Since some exceptions have additional parameters in the constructor, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found