You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Novikov (Jira)" <ji...@apache.org> on 2024/03/20 11:18:00 UTC

[jira] [Assigned] (IGNITE-21817) CriteriaException must keep error code for mapping from SqlException

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

Andrey Novikov reassigned IGNITE-21817:
---------------------------------------

    Assignee: Andrey Novikov

> 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
>            Assignee: 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)