org.eclipse.webdav.internal.kernel
Class WebDAVException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.webdav.internal.kernel.DAVException
              extended by 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

Field Summary
protected  Object data
           
 
Constructor Summary
WebDAVException(int statusCode, String statusMessage)
          Construct a WebDAVException
WebDAVException(int statusCode, String statusMessage, Object data)
          Construct a WebDAVException
 
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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected Object data
Constructor Detail

WebDAVException

public WebDAVException(int statusCode,
                       String statusMessage)
Construct a WebDAVException

Parameters:
statusCode - the HTTP/1.1 or WebDAV status code
statusMessage - 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 code
statusMessage - a message describing the exception of status code
Method Detail

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.