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 Client as the
17: * result of a client error.
18: * <p>
19: * Status codes:
20: * <ul>
21: * <li>400 Bad Request</li>
22: * <li>401 Unauthorized</li>
23: * <li>402 Payment Required</li>
24: * <li>403 Forbidden</li>
25: * <li>404 Not Found</li>
26: * <li>405 Mothod Not Allowed</li>
27: * <li>406 Not Acceptable</li>
28: * <li>407 Proxy Authentication Required</li>
29: * <li>408 Request Timeout</li>
30: * <li>409 Conflict</li>
31: * <li>410 Gone</li>
32: * <li>411 Length Required</li>
33: * <li>412 Precondition Failed</li>
34: * <li>413 Request Entity Too Large</li>
35: * <li>414 Request-URI Too Long</li>
36: * <li>415 Unsupported Media Type</li>
37: * <li>422 Unprocessable Entity</li>
38: * <li>423 Locked</li>
39: * <li>424 Method Failure</li>
40: * <li>425 Insufficient Space on Resource</li>
41: * </ul>
42: * </p>
43: * @author Jim Amsden <jamsden@us.ibm.com>
44: * @see com.ibm.webdav.ServerException
45: * @see com.ibm.webdav.WebDAVException
46: * @see com.ibm.webdav.WebDAVStatus
47: */
48: public class ClientException extends WebDAVException {
49: /** Construct a ClientException with a status code and simple message.
50: * @param statusCode the WebDAV status code corresponding to the exception
51: * @param statusMessage a message describing the status code in the context of the exception
52: * @see com.ibm.webdav.WebDAVStatus
53: */
54: public ClientException(int statusCode, String statusMessage) {
55: super(statusCode, statusMessage);
56: }
57: }
|