01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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
33: RemoteInvocationFailureException {
34:
35: /**
36: * Constructor for SoapFaultException.
37: * @param msg the detail message
38: * @param cause the root cause from the SOAP API in use
39: */
40: protected SoapFaultException(String msg, Throwable cause) {
41: super (msg, cause);
42: }
43:
44: /**
45: * Return the SOAP fault code.
46: */
47: public abstract String getFaultCode();
48:
49: /**
50: * Return the SOAP fault code as a <code>QName</code> object.
51: */
52: public abstract QName getFaultCodeAsQName();
53:
54: /**
55: * Return the descriptive SOAP fault string.
56: */
57: public abstract String getFaultString();
58:
59: /**
60: * Return the actor that caused this fault.
61: */
62: public abstract String getFaultActor();
63:
64: }
|