javax.wvcm
Class WvcmException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.wvcm.WvcmException
All Implemented Interfaces:
java.io.Serializable

public class WvcmException
extends java.lang.Exception

Signals that an failure of some sort has occurred in the WVCM provider. A WvcmException contains a code describing the reason for the failure and optionally a nested exception to further explain the cause of the error. Some of the reason codes were based on pre or post condition failures as defined in Versioning Extensions to WebDAV.

See Also:
Serialized Form

Nested Class Summary
static class WvcmException.ReasonCode
           
 
Constructor Summary
WvcmException(java.lang.String message, java.lang.String location, WvcmException.ReasonCode reasonCode, java.lang.Exception[] nestedExceptions)
          Constructs a WvcmException.
 
Method Summary
 java.lang.String getLocation()
          Returns the location of the resource causing the exception.
 java.lang.Exception[] getNestedExceptions()
          Returns any nested exception that further explains the cause of the error.
 WvcmException.ReasonCode getReasonCode()
          Returns the reason code that describes the nature of the error.
 java.lang.String toString()
          Return simple string representation of the WvcmException.
 
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
 

Constructor Detail

WvcmException

public WvcmException(java.lang.String message,
                     java.lang.String location,
                     WvcmException.ReasonCode reasonCode,
                     java.lang.Exception[] nestedExceptions)
Constructs a WvcmException.

Parameters:
message - The detail message for the exception.
location - The location of the resource causing the exception.
reasonCode - The reason for the exception.
nestedExceptions - Any nested exception.
Method Detail

getLocation

public java.lang.String getLocation()
Returns the location of the resource causing the exception.


getReasonCode

public WvcmException.ReasonCode getReasonCode()
Returns the reason code that describes the nature of the error.


getNestedExceptions

public java.lang.Exception[] getNestedExceptions()
Returns any nested exception that further explains the cause of the error.


toString

public java.lang.String toString()
Return simple string representation of the WvcmException.

Overrides:
toString in class java.lang.Throwable


Copyright (c) 2003 - Apache Software Foundation