Lukas,

Thanks for your response! It definitely helps!

On Wed, May 3, 2017 at 2:28 AM, Lukas Eder <[email protected]> wrote:

> I can't speak for the community here (and I'm very curious about answers /
> feature requests myself), but one option if you're using Spring is to
> delegate this work to Spring's existing SQLExceptionTranslator:
> https://github.com/jOOQ/jOOQ/blob/master/jOOQ-examples/
> jOOQ-spring-example/src/main/java/org/jooq/example/spring/
> exception/ExceptionTranslator.java
>
> Hope this helps,
> Lukas
>
> 2017-05-02 16:25 GMT+02:00 Anto Aravinth <[email protected]>:
>
>> Hi All,
>>
>> I'm new to Jooq and I'm trying to understand if there is any best
>> practise that jooq community uses in order to catch the DataAccessException
>> error and convert the error message to a useful one.
>>
>> Imagine you need to return an json when you find a duplicate data error?
>> How the community is handling it?
>>
>> Currently, I'm throwing the error back to the custom JSONMapper class
>> which does check the *cause* string for certain pattern and prepare a
>> JSON. Well, it works but..
>>
>> I just want to understand how the community handles this situation?
>>
>> ` Anto.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "jOOQ User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "jOOQ User Group" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jooq-user/u1ssd4zbaC4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to