org.neo4j.graphdb
Class NotInTransactionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.neo4j.graphdb.NotInTransactionException
All Implemented Interfaces:
Serializable

public class NotInTransactionException
extends RuntimeException

An exception that is thrown whenever an API operation that requires a transaction is executed but no transaction is running.

Note, currently this exception is not guaranteed to be thrown. A read only operation may succeed if all the data is already cached. A modifying operation will however always throw this exception if no transaction is running.

See Also:
Transaction, Serialized Form

Constructor Summary
NotInTransactionException()
           
NotInTransactionException(String message)
           
NotInTransactionException(String message, Throwable cause)
           
NotInTransactionException(Throwable cause)
           
 
Method Summary
 
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
 

Constructor Detail

NotInTransactionException

public NotInTransactionException()

NotInTransactionException

public NotInTransactionException(String message)

NotInTransactionException

public NotInTransactionException(String message,
                                 Throwable cause)

NotInTransactionException

public NotInTransactionException(Throwable cause)


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.