From f8ad8f267c94cdd199eb60dcbbb51eac8eef7f59 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Fri, 8 Feb 2008 17:52:35 +0000 Subject: [PATCH] Removed package tangle --- .../ws/soap/axiom/support/AxiomUtils.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java b/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java index 782671a8..d9c7b6c9 100644 --- a/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java +++ b/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java @@ -40,7 +40,6 @@ import org.w3c.dom.ls.LSSerializer; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import org.springframework.ws.soap.axiom.AxiomSoapEnvelopeException; import org.springframework.xml.namespace.QNameUtils; /** @@ -113,7 +112,7 @@ public abstract class AxiomUtils { * * @param envelope the SOAP envelope to be converted * @return the converted document - * @throws AxiomSoapEnvelopeException in case of errors + * @throws IllegalArgumentException in case of errors * @see org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(SOAPEnvelope, boolean) */ public static Document toDocument(SOAPEnvelope envelope) { @@ -133,7 +132,7 @@ public abstract class AxiomUtils { } } catch (Exception ex) { - throw new AxiomSoapEnvelopeException("Error in converting SOAP Envelope to Document", ex); + throw new IllegalArgumentException("Error in converting SOAP Envelope to Document", ex); } } @@ -142,7 +141,7 @@ public abstract class AxiomUtils { * * @param document the document to be converted * @return the converted envelope - * @throws AxiomSoapEnvelopeException in case of errors + * @throws IllegalArgumentException in case of errors * @see org.apache.rampart.util.Axis2Util.getSOAPEnvelopeFromDOMDocument(Document, boolean) */ public static SOAPEnvelope toEnvelope(Document document) { @@ -165,7 +164,7 @@ public abstract class AxiomUtils { return stAXSOAPModelBuilder.getSOAPEnvelope(); } catch (Exception ex) { - throw new AxiomSoapEnvelopeException("Error in converting Document to SOAP Envelope", ex); + throw new IllegalArgumentException("Error in converting Document to SOAP Envelope", ex); } }