Class SecurityException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, AuthorizationExpiredException, SecurityRetryableException, TokenExpiredException

public class SecurityException extends ClientException
Failed to communicate with the server due to security errors. When this type of error happens, the security cause of the error should be fixed to ensure the safety of your data. Restart of server/driver/cluster might be required to recover from this error.
Since:
1.1
See Also:
  • Constructor Details

    • SecurityException

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

      public SecurityException(String message, Throwable t)
      Creates a new instance.
      Parameters:
      message - the message
      t - the throwable
    • SecurityException

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