KickJava   Java API By Example, From Geeks To Geeks.

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


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 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 &lt;jamsden@us.ibm.com&gt;
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 {
50 /** Construct a ClientException with a status code and simple message.
51  * @param statusCode the WebDAV status code corresponding to the exception
52  * @param statusMessage a message describing the status code in the context of the exception
53  * @see com.ibm.webdav.WebDAVStatus
54  */

55 public ClientException(int statusCode, String JavaDoc statusMessage) {
56     super(statusCode, statusMessage);
57 }
58 }
59
Popular Tags