This is an automated email from the ASF dual-hosted git repository.

shenlin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-eventbridge.git


The following commit(s) were added to refs/heads/main by this push:
     new 0cacd2a  fix response http code
0cacd2a is described below

commit 0cacd2ab51dac39b8e7588853e9a0cff494f49bb
Author: zh378814 <[email protected]>
AuthorDate: Fri Aug 18 13:22:28 2023 +0800

    fix response http code
---
 .../org/apache/rocketmq/eventbridge/exception/EventBridgeException.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/common/src/main/java/org/apache/rocketmq/eventbridge/exception/EventBridgeException.java
 
b/common/src/main/java/org/apache/rocketmq/eventbridge/exception/EventBridgeException.java
index b6ea18b..ba8bfc5 100644
--- 
a/common/src/main/java/org/apache/rocketmq/eventbridge/exception/EventBridgeException.java
+++ 
b/common/src/main/java/org/apache/rocketmq/eventbridge/exception/EventBridgeException.java
@@ -49,11 +49,13 @@ public class EventBridgeException extends RuntimeException {
     public EventBridgeException(BaseErrorCode errorCode, Throwable throwable, 
Object... args) {
         super(MessageFormat.format(errorCode.getMsg(), args), throwable);
         this.code = errorCode.getCode();
+        this.httpCode = errorCode.getHttpCode();
     }
 
     public EventBridgeException(BaseErrorCode errorCode, Object... args) {
         super(MessageFormat.format(errorCode.getMsg(), args));
         this.code = errorCode.getCode();
+        this.httpCode = errorCode.getHttpCode();
     }
 
     public String getCode() {

Reply via email to