ygerzhedovich commented on code in PR #1257:
URL: https://github.com/apache/ignite-3/pull/1257#discussion_r1007075132
##########
modules/api/src/main/java/org/apache/ignite/lang/IgniteException.java:
##########
@@ -289,4 +288,14 @@ public static IgniteException wrap(Throwable e) {
return new IgniteException(UNKNOWN_ERR, e.getMessage(), e);
}
+
+ /**
+ * Gets the Ignite error code if the specified throwable is an {@link
IgniteException}.
+ *
+ * @param t Throwable.
+ * @return Ignite error code or UNKNOWN_ERR.
+ */
+ public static int getIgniteErrorCode(Throwable t) {
Review Comment:
good change. It will fix
[IGNITE-17970](https://issues.apache.org/jira/browse/IGNITE-17970)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]