javax.wvcm
Class WvcmException

Object
  |
  +--Throwable
        |
        +--Exception
              |
              +--WvcmException
All Implemented Interfaces:
Serializable

public class WvcmException
extends 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(String message, String location, WvcmException.ReasonCode reasonCode, Exception[] nestedExceptions)
          Constructs a WvcmException.
 
Method Summary
 String getLocation()
          Returns the location of the resource causing the exception.
 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.
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WvcmException

public WvcmException(String message,
                     String location,
                     WvcmException.ReasonCode reasonCode,
                     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 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 Exception[] getNestedExceptions()
Returns any nested exception that further explains the cause of the error.