1 package no.feide.moria.servlet.soap;
2
3 /***
4 * The superclass for all exceptions that should result in a SOAP Fault message
5 * with <code>faultcode</code> <i>Client </i>
6 * @author Cato Olsen
7 */
8 public abstract class ClientException
9 extends SOAPException {
10
11 /***
12 * Default constructor.
13 * @param msg
14 * The exception message.
15 */
16 public ClientException(final String msg) {
17
18 super(msg);
19
20 }
21
22
23 /***
24 * Gives the SOAP Faultcode for the exception (the value of the
25 * <code>faultCode</code> element in the SOAP reply).
26 * @return The SOAP Faultcode for the exception, in this case always
27 * <code>"Client"</code>.
28 */
29 public String getFaultcode() {
30
31 return new String("Client");
32
33 }
34
35 }