org.esupportail.portal.channels.CWebdav.exception
Class WebdavException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.esupportail.portal.channels.CWebdav.exception.WebdavException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ApplicationException, BadFormatException, CancelException, CopyException, CreateDirectoryException, DeleteException, DownloadException, EmptyFileOnUploadException, MoveException, NoneSelectedResourceException, NotAuthorizedDeleteException, NotAuthorizedDownloadException, NotAuthorizedException, NotAuthorizedNewDirException, NotAuthorizedRenameException, NotAuthorizedUploadException, NotEmptyDirectoryException, NotExistsResourceException, OverQuotaException, PasteDeletedResourceException, PasteInChildDirectoryException, PasteNotAuthorizedResourceException, PasteWithSameNameException, PropertiesException, ReadFileException, RenameException, ServerException, StillExistsException, TooMuchSelectedException, UploadException

public class WebdavException
extends java.lang.Exception

Id: WebdavException.java,v 1.0 13 mai 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: WebdavException
Original Author: Yohan Colmant
An abstract exception

See Also:
Serialized Form

Field Summary
private  int errorCode
          The error code associated to this exception
private  int httpErrorCode
          The HTTP error code
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WebdavException()
          Constructor
WebdavException(int errorCode)
          Constructor
WebdavException(int errorCode, int httpErrorCode)
          Constructor
 
Method Summary
 int getErrorCode()
          Return the error code associated to this exception
 int getHttpErrorCode()
          Return the http error code return by the webdav
 java.lang.String toString()
          Return a string form of this exception
 
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

errorCode

private int errorCode
The error code associated to this exception


httpErrorCode

private int httpErrorCode
The HTTP error code

Constructor Detail

WebdavException

public WebdavException()
Constructor


WebdavException

public WebdavException(int errorCode)
Constructor

Parameters:
errorCode - the errorCode associate to this exception

WebdavException

public WebdavException(int errorCode,
                       int httpErrorCode)
Constructor

Parameters:
errorCode - the errorCode associate to this exception
httpErrorCode - the errorCode associate to this exception
Method Detail

getErrorCode

public int getErrorCode()
Return the error code associated to this exception

Returns:
the error code

getHttpErrorCode

public int getHttpErrorCode()
Return the http error code return by the webdav

Returns:
the http error code

toString

public java.lang.String toString()
Return a string form of this exception