View Javadoc

1   package no.feide.moria.servlet.soap;
2   
3   
4   /***
5    * The superclass for all exceptions that should result in a SOAP Fault message
6    * with <code>faultcode</code> <i>Server</i>
7    * @author Cato Olsen
8    */
9   public abstract class ServerException
10  extends SOAPException {
11      
12      /***
13       * Default constructor.
14       * @param msg The exception message.
15       */
16      public ServerException(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>"Server"</code>.
28       */
29      public String getFaultcode() {
30  
31          return new String("Server");
32  
33      }
34  
35  }