Class AuthenticationException

All Implemented Interfaces:
Serializable

public class AuthenticationException extends SecurityException
Failed to authenticate the driver to the server due to bad credentials provided. When this error happens, the error could be recovered by closing the current driver and restart a new driver with the correct credentials.
Since:
1.1
See Also:
  • Constructor Details

    • AuthenticationException

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

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