001/*
002 * Copyright 2002-2012 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.remoting.soap;
018
019import javax.xml.namespace.QName;
020
021import org.springframework.remoting.RemoteInvocationFailureException;
022
023/**
024 * RemoteInvocationFailureException subclass that provides the details
025 * of a SOAP fault.
026 *
027 * @author Juergen Hoeller
028 * @since 2.5
029 * @see javax.xml.rpc.soap.SOAPFaultException
030 * @see javax.xml.ws.soap.SOAPFaultException
031 */
032@SuppressWarnings("serial")
033public abstract class SoapFaultException extends RemoteInvocationFailureException {
034
035        /**
036         * Constructor for SoapFaultException.
037         * @param msg the detail message
038         * @param cause the root cause from the SOAP API in use
039         */
040        protected SoapFaultException(String msg, Throwable cause) {
041                super(msg, cause);
042        }
043
044
045        /**
046         * Return the SOAP fault code.
047         */
048        public abstract String getFaultCode();
049
050        /**
051         * Return the SOAP fault code as a {@code QName} object.
052         */
053        public abstract QName getFaultCodeAsQName();
054
055        /**
056         * Return the descriptive SOAP fault string.
057         */
058        public abstract String getFaultString();
059
060        /**
061         * Return the actor that caused this fault.
062         */
063        public abstract String getFaultActor();
064
065}