Skip to content

Commit

Permalink
修改抛出的异常信息,把memecached改为redis,代码135行和167行 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsy158 authored and beiwei30 committed Jun 15, 2016
1 parent 7115f2f commit e3c0b0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected Result doInvoke(Invocation invocation) throws Throwable {
}
}
catch (Throwable t) {
RpcException re = new RpcException("Failed to invoke memecached service method. interface: " + type.getName() + ", method: " + invocation.getMethodName() + ", url: " + url + ", cause: " + t.getMessage(), t);
RpcException re = new RpcException("Failed to invoke redis service method. interface: " + type.getName() + ", method: " + invocation.getMethodName() + ", url: " + url + ", cause: " + t.getMessage(), t);
if (t instanceof TimeoutException || t instanceof SocketTimeoutException) {
re.setCode(RpcException.TIMEOUT_EXCEPTION);
} else if (t instanceof JedisConnectionException || t instanceof IOException) {
Expand Down Expand Up @@ -164,7 +164,7 @@ public void destroy() {
}
};
} catch (Throwable t) {
throw new RpcException("Failed to refer memecached service. interface: " + type.getName() + ", url: " + url + ", cause: " + t.getMessage(), t);
throw new RpcException("Failed to refer redis service. interface: " + type.getName() + ", url: " + url + ", cause: " + t.getMessage(), t);
}
}

Expand Down

0 comments on commit e3c0b0d

Please sign in to comment.