From 8bbeea374ebf3c738101ed7e07fa668066033a8c Mon Sep 17 00:00:00 2001 From: Martin Vysny Date: Wed, 25 Oct 2017 10:53:10 +0300 Subject: [PATCH] Fixed: SendingAction now sets UnsupportedDataException properly as a cause to the ActionException --- .../fourthline/cling/protocol/sync/SendingAction.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/fourthline/cling/protocol/sync/SendingAction.java b/core/src/main/java/org/fourthline/cling/protocol/sync/SendingAction.java index b86efc52c..ef236e76a 100644 --- a/core/src/main/java/org/fourthline/cling/protocol/sync/SendingAction.java +++ b/core/src/main/java/org/fourthline/cling/protocol/sync/SendingAction.java @@ -128,7 +128,7 @@ protected StreamResponseMessage sendRemoteRequest(OutgoingActionRequestMessage r log.fine("Error writing SOAP body: " + ex); log.log(Level.FINE, "Exception root cause: ", Exceptions.unwrap(ex)); } - throw new ActionException(ErrorCode.ACTION_FAILED, "Error writing request message. " + ex.getMessage()); + throw new ActionException(ErrorCode.ACTION_FAILED.getCode(), "Error writing request message. " + ex.getMessage(), ex); } } @@ -141,9 +141,9 @@ protected void handleResponse(IncomingActionResponseMessage responseMsg) throws log.fine("Error reading SOAP body: " + ex); log.log(Level.FINE, "Exception root cause: ", Exceptions.unwrap(ex)); throw new ActionException( - ErrorCode.ACTION_FAILED, + ErrorCode.ACTION_FAILED.getCode(), "Error reading SOAP response message. " + ex.getMessage(), - false + ex ); } } @@ -157,9 +157,9 @@ protected void handleResponseFailure(IncomingActionResponseMessage responseMsg) log.fine("Error reading SOAP body: " + ex); log.log(Level.FINE, "Exception root cause: ", Exceptions.unwrap(ex)); throw new ActionException( - ErrorCode.ACTION_FAILED, + ErrorCode.ACTION_FAILED.getCode(), "Error reading SOAP response failure message. " + ex.getMessage(), - false + ex ); } }