diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-20 06:18:05 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-20 06:18:05 +0000 |
commit | f22de7203f3ffd7df0d5d24aee89f5f31aef1a2c (patch) | |
tree | 6b5bd2f63707a49f3e8480ad051807ac90b4f6ee /branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java | |
parent | 5a2a588c8639f8c8559fb11b6a5e33f6843308ce (diff) |
Reporting fault message with exception in json representation, when jsonrpc operation selector interceptor can't parse json request
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java b/branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java index 85f5f1e27f..6369892361 100644 --- a/branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java +++ b/branches/sca-java-1.x/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java @@ -110,6 +110,12 @@ public class JSONRPCWireFormatInterceptor implements Interceptor { } + + /** + * Create a Fault Message with a JSON representation of the current exception + * @param throwable + * @return + */ private Message createJSONFaultMessage(Throwable throwable) { Message jsonFaultMessage = messageFactory.createMessage(); |