org.eclipse.webdav.internal.kernel
Class WebDAVException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.webdav.internal.kernel.DAVException
org.eclipse.webdav.internal.kernel.WebDAVException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ClientException, RedirectionException, ServerException
public class WebDAVException
- extends DAVException
This is the superclass of all WebDAV protocol exceptions
It contains a status code that provides information, and a
descriptive message.
- See Also:
- Serialized Form
Method Summary |
Object |
getData()
|
int |
getStatusCode()
Get the status code that provides additional information about the
exception. |
String |
toString()
Render this WebDAVException as a string including its status code. |
data
protected Object data
WebDAVException
public WebDAVException(int statusCode,
String statusMessage)
- Construct a WebDAVException
- Parameters:
statusCode
- the HTTP/1.1 or WebDAV status codestatusMessage
- a message describing the exception of status code
WebDAVException
public WebDAVException(int statusCode,
String statusMessage,
Object data)
- Construct a WebDAVException
- Parameters:
statusCode
- the HTTP/1.1 or WebDAV status codestatusMessage
- a message describing the exception of status code
getData
public Object getData()
getStatusCode
public int getStatusCode()
- Get the status code that provides additional information about the
exception. These status codes are defined by the HTTP/1.1 and WebDAV
specifications.
- Returns:
- the HTTP/1.1 or WebDAV status code
toString
public String toString()
- Render this WebDAVException as a string including its status code.
- Overrides:
toString
in class Throwable
- Returns:
- the string includes the status code and message
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.