KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > webdav > ServerException


1 package com.ibm.webdav;
2
3 /*
4  * (C) Copyright IBM Corp. 2000 All rights reserved.
5  *
6  * The program is provided "AS IS" without any warranty express or
7  * implied, including the warranty of non-infringement and the implied
8  * warranties of merchantibility and fitness for a particular purpose.
9  * IBM will not be liable for any damages suffered by you as a result
10  * of using the Program. In no event will IBM be liable for any
11  * special, indirect or consequential damages or lost profits even if
12  * IBM has been advised of the possibility of their occurrence. IBM
13  * will not be liable for any third party claims against you.
14  */

15
16 /** Represents exceptions that can happen on the server as the
17  * result of a server error.
18  * <p>
19  * Status codes:
20  * <ul>
21  * <li>500 Internal Server Error</li>
22  * <li>501 Not Implemented</li>
23  * <li>502 Bad Gateway</li>
24  * <li>503 Service Unavailable</li>
25  * <li>504 Gateway Timeout</li>
26  * <li>505 HTTP Version Not Supported</li>
27  * </ul>
28  * </p>
29  * @author Jim Amsden &lt;jamsden@us.ibm.com&gt;
30  * @see com.ibm.webdav.ClientException
31  * @see com.ibm.webdav.WebDAVException
32  * @see com.ibm.webdav.WebDAVStatus
33  */

34 public class ServerException extends WebDAVException
35 {
36 /** Construct a ServerException with a status code and simple message.
37  * @param statusCode the WebDAV status code corresponding to the exception
38  * @param statusMessage a message describing the status code in the context of the exception
39  * @see com.ibm.webdav.WebDAVStatus
40  */

41 public ServerException(int statusCode, String JavaDoc statusMessage) {
42     super(statusCode, statusMessage);
43 }
44 }
45
Popular Tags