01: package com.ibm.webdav;
02:
03: /*
04: * (C) Copyright IBM Corp. 2000 All rights reserved.
05: *
06: * The program is provided "AS IS" without any warranty express or
07: * implied, including the warranty of non-infringement and the implied
08: * warranties of merchantibility and fitness for a particular purpose.
09: * 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 <jamsden@us.ibm.com>
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: /** Construct a ServerException with a status code and simple message.
36: * @param statusCode the WebDAV status code corresponding to the exception
37: * @param statusMessage a message describing the status code in the context of the exception
38: * @see com.ibm.webdav.WebDAVStatus
39: */
40: public ServerException(int statusCode, String statusMessage) {
41: super(statusCode, statusMessage);
42: }
43: }
|