it.could.webdav
Class DAVException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byit.could.webdav.DAVException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DAVMultiStatus, DAVNotModified

public class DAVException
extends RuntimeException

A RuntimeException representing a WebDAV response for a specified DAVResource.

Author:
Pier Fumagalli
See Also:
Serialized Form

Constructor Summary
DAVException(int status, String message)
          Create a new DAVException instance.
DAVException(int status, String message, DAVResource resource)
          Create a new DAVException instance.
DAVException(int status, String message, Throwable throwable)
          Create a new DAVException instance.
DAVException(int s, String m, Throwable t, DAVResource r)
          Create a new DAVException instance.
 
Method Summary
 DAVResource getResource()
          Return the DAVResource associated with this instance.
 int getStatus()
          Return the status code associated with this instance.
 void write(DAVTransaction transaction)
          Write the body of this DAVException to the specified DAVTransaction's output.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAVException

public DAVException(int status,
                    String message)

Create a new DAVException instance.


DAVException

public DAVException(int status,
                    String message,
                    Throwable throwable)

Create a new DAVException instance.


DAVException

public DAVException(int status,
                    String message,
                    DAVResource resource)

Create a new DAVException instance.


DAVException

public DAVException(int s,
                    String m,
                    Throwable t,
                    DAVResource r)

Create a new DAVException instance.

Method Detail

getStatus

public int getStatus()

Return the status code associated with this instance.


getResource

public DAVResource getResource()

Return the DAVResource associated with this instance.


write

public void write(DAVTransaction transaction)
           throws IOException

Write the body of this DAVException to the specified DAVTransaction's output.

Throws:
IOException