Class Neo4jException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientException, DatabaseException, DiscoveryException, MessageIgnoredException, MinVersionAcquisitionException, ProtocolException, ServiceUnavailableException, SessionExpiredException, TransientException

public class Neo4jException extends RuntimeException
This is the base class for Neo4j exceptions.
Since:
1.0
See Also:
  • Constructor Details

    • Neo4jException

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

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

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

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

      @Preview(name="GQL-error") public Neo4jException(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
  • Method Details