java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.neo4j.driver.exceptions.Neo4jException
org.neo4j.driver.exceptions.ClientException
org.neo4j.driver.exceptions.TransactionTerminatedException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionTransactionTerminatedException
(String message) Creates a new instance.TransactionTerminatedException
(String code, String message) Creates a new instance.TransactionTerminatedException
(String gqlStatus, String statusDescription, String code, String message, Map<String, Value> diagnosticRecord, Throwable cause) Creates a new instance.TransactionTerminatedException
(String message, Throwable cause) Creates a new instance. -
Method Summary
Methods inherited from class org.neo4j.driver.exceptions.Neo4jException
classification, code, diagnosticRecord, gqlCause, gqlStatus, rawClassification, statusDescription
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionTerminatedException
Creates a new instance.- Parameters:
message
- the message
-
TransactionTerminatedException
Creates a new instance.- Parameters:
code
- the codemessage
- the message
-
TransactionTerminatedException
Creates a new instance.- Parameters:
message
- the messagecause
- 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 standardstatusDescription
- the status descriptioncode
- the codemessage
- the messagediagnosticRecord
- the diagnostic recordcause
- the cause- Since:
- 5.26.0
-