Skip to content

Commit e3c0b0d

Browse files
ghsy158beiwei30
authored andcommitted
修改抛出的异常信息,把memecached改为redis,代码135行和167行 (apache#242)
1 parent 7115f2f commit e3c0b0d

File tree

1 file changed

+2
-2
lines changed
  • dubbo-rpc/dubbo-rpc-redis/src/main/java/com/alibaba/dubbo/rpc/protocol/redis

1 file changed

+2
-2
lines changed

dubbo-rpc/dubbo-rpc-redis/src/main/java/com/alibaba/dubbo/rpc/protocol/redis/RedisProtocol.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected Result doInvoke(Invocation invocation) throws Throwable {
132132
}
133133
}
134134
catch (Throwable t) {
135-
RpcException re = new RpcException("Failed to invoke memecached service method. interface: " + type.getName() + ", method: " + invocation.getMethodName() + ", url: " + url + ", cause: " + t.getMessage(), t);
135+
RpcException re = new RpcException("Failed to invoke redis service method. interface: " + type.getName() + ", method: " + invocation.getMethodName() + ", url: " + url + ", cause: " + t.getMessage(), t);
136136
if (t instanceof TimeoutException || t instanceof SocketTimeoutException) {
137137
re.setCode(RpcException.TIMEOUT_EXCEPTION);
138138
} else if (t instanceof JedisConnectionException || t instanceof IOException) {
@@ -164,7 +164,7 @@ public void destroy() {
164164
}
165165
};
166166
} catch (Throwable t) {
167-
throw new RpcException("Failed to refer memecached service. interface: " + type.getName() + ", url: " + url + ", cause: " + t.getMessage(), t);
167+
throw new RpcException("Failed to refer redis service. interface: " + type.getName() + ", url: " + url + ", cause: " + t.getMessage(), t);
168168
}
169169
}
170170

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy