org.apache.slide.store
Class ConcurrencyConflictError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.apache.slide.store.ConcurrencyConflictError
All Implemented Interfaces:
java.io.Serializable

public class ConcurrencyConflictError
extends java.lang.Error

Error gets thrown from the store layer upon failure caused by other concurrent requests. Such failures include deadlocks, unserializable transactions and other spurious behaviour caused by insufficient isolation. Note: This must be an error to ensure it passes the store layer and gets caught in the WebDAV layer only

Version:
$Revision: 1.1 $
See Also:
Serialized Form

Field Summary
protected  int errorCode
           
protected  java.lang.String uri
           
 
Fields inherited from class java.lang.Error
 
Constructor Summary
ConcurrencyConflictError()
           
ConcurrencyConflictError(int errorCode, java.lang.String message, java.lang.String uri)
           
ConcurrencyConflictError(java.sql.SQLException e, java.lang.String uri)
           
 
Method Summary
 int getErrorCode()
           
 java.lang.String getUri()
           
 java.lang.String toString()
           
 
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

protected int errorCode

uri

protected java.lang.String uri
Constructor Detail

ConcurrencyConflictError

public ConcurrencyConflictError(int errorCode,
                                java.lang.String message,
                                java.lang.String uri)

ConcurrencyConflictError

public ConcurrencyConflictError(java.sql.SQLException e,
                                java.lang.String uri)

ConcurrencyConflictError

public ConcurrencyConflictError()
Method Detail

toString

public java.lang.String toString()

getErrorCode

public int getErrorCode()
Returns:
Returns the errorCode.

getUri

public java.lang.String getUri()
Returns:
Returns the uri.