tkalkirill commented on code in PR #1645:
URL: https://github.com/apache/ignite-3/pull/1645#discussion_r1099772499


##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/StorageException.java:
##########
@@ -75,4 +76,16 @@ protected StorageException(int code, String message) {
     protected StorageException(int code, String message, @Nullable Throwable 
cause) {
         super(code, message, cause);
     }
+
+    /**
+     * Constructor.
+     *
+     * @param cause Non-null throwable cause.
+     * @param messagePattern Error message pattern.
+     * @param params Error message params.
+     * @see IgniteStringFormatter#format(String, Object...)
+     */
+    public StorageException(Throwable cause, String messagePattern, Object... 
params) {
+        this(IgniteStringFormatter.format(messagePattern, params), cause);

Review Comment:
   This is not necessary because we are using the 
`StorageException(java.lang.String, java.lang.Throwable)`, which is passed an 
error code.



-- 
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]

Reply via email to