1 /* 2 * Copyright 2002-2007 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.springframework.remoting.soap; 18 19 import javax.xml.namespace.QName; 20 21 import org.springframework.remoting.RemoteInvocationFailureException; 22 23 /** 24 * RemoteInvocationFailureException subclass that provides the details 25 * of a SOAP fault. 26 * 27 * @author Juergen Hoeller 28 * @since 2.5 29 * @see javax.xml.rpc.soap.SOAPFaultException 30 * @see javax.xml.ws.soap.SOAPFaultException 31 */ 32 public abstract class SoapFaultException extends RemoteInvocationFailureException { 33 34 /** 35 * Constructor for SoapFaultException. 36 * @param msg the detail message 37 * @param cause the root cause from the SOAP API in use 38 */ SoapFaultException(String msg, Throwable cause)39 protected SoapFaultException(String msg, Throwable cause) { 40 super(msg, cause); 41 } 42 43 44 /** 45 * Return the SOAP fault code. 46 */ getFaultCode()47 public abstract String getFaultCode(); 48 49 /** 50 * Return the SOAP fault code as a <code>QName</code> object. 51 */ getFaultCodeAsQName()52 public abstract QName getFaultCodeAsQName(); 53 54 /** 55 * Return the descriptive SOAP fault string. 56 */ getFaultString()57 public abstract String getFaultString(); 58 59 /** 60 * Return the actor that caused this fault. 61 */ getFaultActor()62 public abstract String getFaultActor(); 63 64 } 65