java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.neo4j.driver.exceptions.Neo4jException
org.neo4j.driver.exceptions.DatabaseException
- All Implemented Interfaces:
Serializable
A DatabaseException indicates that there is a problem within the underlying database.
The error code provided can be used to determine further detail for the problem.
- Since:
- 1.0
- See Also:
-
Constructor Summary
-
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
-
DatabaseException
Creates a new instance.- Parameters:
code
- the codemessage
- the message
-
DatabaseException
@Preview(name="GQL-error") public DatabaseException(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
-