Andrey Novikov created IGNITE-21817:
---------------------------------------
Summary: 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
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)