Class ClientException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthTokenManagerExecutionException, FatalDiscoveryException, ResultConsumedException, SecurityException, TransactionNestingException, TransactionTerminatedException, UnsupportedFeatureException, ValueException

public class ClientException extends Neo4jException
A ClientException indicates that the client has carried out an operation incorrectly. The error code provided can be used to determine further detail for the problem.
Since:
1.0
See Also:
  • Constructor Details

    • ClientException

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

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

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

      @Preview(name="GQL-error") public ClientException(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