Class TokenExpiredException

All Implemented Interfaces:
Serializable

public class TokenExpiredException extends SecurityException
The provided token has expired.

The current driver instance is considered invalid. It should not be used anymore. The client must create a new driver instance with a valid token.

Error code: Neo.ClientError.Security.TokenExpired

See Also:
  • Constructor Details

    • TokenExpiredException

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

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