ptupitsyn commented on code in PR #5557:
URL: https://github.com/apache/ignite-3/pull/5557#discussion_r2026150756


##########
modules/platforms/cpp/ignite/common/ignite_error.h:
##########
@@ -76,12 +77,27 @@ class ignite_error : public std::exception {
         , m_cause(std::move(cause)) {} // 
NOLINT(bugprone-throw-keyword-missing)
 
     /**
-     * Get error message.
+     * Constructor.
+     *
+     * @param code Status code.
+     * @param message Message.
+     * @param trace_id Trace ID.
+     * @param java_st Java stack trace.
+     */
+    explicit ignite_error(error::code code, std::string message, uuid trace_id,
+        std::optional<std::string> java_st) noexcept
+        : m_status_code(code)
+        , m_message(std::move(message))
+        , m_trace_id(trace_id)
+        , m_java_stack_trace(java_st) {} // 
NOLINT(bugprone-throw-keyword-missing)
+
+    /**
+     * Get an error message.
      */
     [[nodiscard]] char const *what() const noexcept override { return 
m_message.c_str(); }
 
     /**
-     * Get error message as std::string.
+     * Get an error message as std::string.

Review Comment:
   ```suggestion
        * Get the error message as std::string.
   ```



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to