ozone API

org.ozoneDB
Class TransactionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.ozoneDB.OzoneRemoteException
                  extended byorg.ozoneDB.TransactionException
All Implemented Interfaces:
java.io.Serializable

public class TransactionException
extends OzoneRemoteException

This exception is thrown, if...

Version:
$Revision: 1.2 $Date: 2002/12/29 11:15:55 $
Author:
SMB
See Also:
Serialized Form

Field Summary
static int OPTIMISTIC
          An object that was optimisticly locked (by an explicit lock or the use of ClientCacheDatabase) was changed by another party.
static int ROLLBACK
          Transaction was rolled back instead of prepared.
static int STATE
          Transaction had inproper status to complete the requested operation.
static int STOPPED
          The transaction was stopped by the transaction manager.
static int UNEXPECTED
          An error was encountered where it was not expected.
static int UNKNOWN
           
 
Constructor Summary
TransactionException()
           
TransactionException(java.lang.String s)
           
TransactionException(java.lang.String s, int _code)
           
TransactionException(java.lang.String msg, java.lang.Throwable cause)
           
TransactionException(java.lang.Throwable cause)
           
 
Method Summary
 int code()
           
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

STATE

public static final int STATE
Transaction had inproper status to complete the requested operation.

See Also:
Constant Field Values

ROLLBACK

public static final int ROLLBACK
Transaction was rolled back instead of prepared.

See Also:
Constant Field Values

OPTIMISTIC

public static final int OPTIMISTIC
An object that was optimisticly locked (by an explicit lock or the use of ClientCacheDatabase) was changed by another party.

See Also:
Constant Field Values

UNEXPECTED

public static final int UNEXPECTED
An error was encountered where it was not expected. This normaly indicates a runtime exception (for example an IOException) or a bug.

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
The transaction was stopped by the transaction manager.

See Also:
Constant Field Values
Constructor Detail

TransactionException

public TransactionException()

TransactionException

public TransactionException(java.lang.String s)

TransactionException

public TransactionException(java.lang.String msg,
                            java.lang.Throwable cause)

TransactionException

public TransactionException(java.lang.Throwable cause)

TransactionException

public TransactionException(java.lang.String s,
                            int _code)
Method Detail

code

public int code()

toString

public java.lang.String toString()

ozone API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.