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 ); } }