Class TransactionTerminatedException

All Implemented Interfaces:
Serializable

public class TransactionTerminatedException extends ClientException
Indicates that the transaction has been terminated.

Any usage of the terminated transaction and any of its results must be stopped and the transaction must be closed explicitly. Moreover, any error in the transaction result(s) should be considered as a transaction termination and must be handled in the same way.

The exception will contain a non-null Neo4jException.code() if it is created based on the server's response. It will not have a code if it is generated by the driver.

Since:
5.11
See Also:
  • Constructor Details

    • TransactionTerminatedException

      public TransactionTerminatedException(String message)
      Creates a new instance.
      Parameters:
      message - the message
    • TransactionTerminatedException

      public TransactionTerminatedException(String code, String message)
      Creates a new instance.
      Parameters:
      code - the code
      message - the message
    • TransactionTerminatedException

      public TransactionTerminatedException(String message, Throwable cause)
      Creates a new instance.
      Parameters:
      message - the message
      cause - the cause
    • TransactionTerminatedException

      @Preview(name="GQL-error") public TransactionTerminatedException(String gqlStatus, String statusDescription, String code, String message, Map<String,Value> diagnosticRecord, Throwable cause)
      Creates a new instance.
      Parameters:
      gqlStatus - the GQLSTATUS as defined by the GQL standard
      statusDescription - the status description
      code - the code
      message - the message
      diagnosticRecord - the diagnostic record
      cause - the cause
      Since:
      5.26.0