[ 
https://issues.apache.org/jira/browse/IGNITE-21817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Novikov updated IGNITE-21817:
------------------------------------
    Labels: ignite-3  (was: )

> CriteriaException must keep error code for mapping from SqlException 
> ---------------------------------------------------------------------
>
>                 Key: IGNITE-21817
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21817
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Andrey Novikov
>            Priority: Major
>              Labels: ignite-3
>
> Current implementation of 
> CriteriaExceptionMapperUtil#mapToPublicCriteriaException
> {code:java}
> public static Throwable mapToPublicCriteriaException(Throwable origin) {
> Throwable e = mapToPublicException(origin);
> if (e instanceof Error) {
> return e;
> }
> if (e instanceof CriteriaException) {
> return e;
> }
> if (e instanceof SqlException) {
> return new CriteriaException(INTERNAL_ERR, e);
> }
> ...{code}
> It looks like we doesn't need to map all SqlException to CriteriaException 
> with errorCode = INTERNAL_ERR



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to