ozone core API

org.ozoneDB.core
Class TransactionError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.ozoneDB.core.TransactionError
All Implemented Interfaces:
java.io.Serializable

public final class TransactionError
extends java.lang.Error

A TransactionError indicates that the current transaction has to abort no matter what. (For example because a dead-lock has been detected.) Therefore it is an Error instead of an Exception. So it will not be catched by a "catch (Exception e)" clause, which is the common way to catch exceptions in the ozone code.

Version:
$Revision: 1.2 $Date: 2002/08/27 08:32:25 $
Author:
SMB
See Also:
Serialized Form

Field Summary
protected  int code
           
static int DEADLOCK
           
static int INTERNAL
           
static int UNKNOWN
           
 
Fields inherited from class java.lang.Error
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
TransactionError()
           
TransactionError(java.lang.String s)
           
TransactionError(java.lang.String s, int _code)
           
 
Method Summary
 int code()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

DEADLOCK

public static final int DEADLOCK
See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values

code

protected int code
Constructor Detail

TransactionError

public TransactionError()

TransactionError

public TransactionError(java.lang.String s)

TransactionError

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

code

public int code()

ozone core API

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