Class DatabaseException

All Implemented Interfaces:
Serializable

public class DatabaseException extends Neo4jException
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 Details

    • DatabaseException

      public DatabaseException(String code, String message)
      Creates a new instance.
      Parameters:
      code - the code
      message - 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 standard
      statusDescription - the status description
      code - the code
      message - the message
      diagnosticRecord - the diagnostic record
      cause - the cause
      Since:
      5.26.0