This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 7db9077 THRIFT-4566: Pass message to rethrow exception (#1554)
7db9077 is described below
commit 7db90771ac6bdbd7890e69ce8309fa650163a87c
Author: nicaro <[email protected]>
AuthorDate: Wed May 9 14:48:56 2018 +0200
THRIFT-4566: Pass message to rethrow exception (#1554)
Client: java
---
lib/java/src/org/apache/thrift/ProcessFunction.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/java/src/org/apache/thrift/ProcessFunction.java
b/lib/java/src/org/apache/thrift/ProcessFunction.java
index be76aff..e6213df 100644
--- a/lib/java/src/org/apache/thrift/ProcessFunction.java
+++ b/lib/java/src/org/apache/thrift/ProcessFunction.java
@@ -45,7 +45,7 @@ public abstract class ProcessFunction<I, T extends TBase> {
msgType = TMessageType.EXCEPTION;
} catch (Exception ex) {
LOGGER.error("Internal error processing " + getMethodName(), ex);
- if(rethrowUnhandledExceptions()) throw new RuntimeException(ex);
+ if(rethrowUnhandledExceptions()) throw new
RuntimeException(ex.getMessage(), ex);
if(!isOneway()) {
result = new
TApplicationException(TApplicationException.INTERNAL_ERROR,
"Internal error processing " + getMethodName());
--
To stop receiving notification emails like this one, please contact
[email protected].