Class SecurityRetryableException

All Implemented Interfaces:
Serializable, RetryableException

public class SecurityRetryableException extends SecurityException implements RetryableException
Indicates that the contained SecurityException is a RetryableException, which is determined by the AuthTokenManager.handleSecurityException(AuthToken, SecurityException) method.

The original SecurityException is always available as a Throwable.getCause(). The code() and getMessage() supply the values from the original exception.

Since:
5.12
See Also:
  • Constructor Details

    • SecurityRetryableException

      public SecurityRetryableException(SecurityException exception)
      Creates a new instance.
      Parameters:
      exception - the original security exception, must not be null
  • Method Details

    • code

      public String code()
      Description copied from class: Neo4jException
      Access the status code for this exception. The Neo4j manual can provide further details on the available codes and their meanings.
      Overrides:
      code in class Neo4jException
      Returns:
      textual code, such as "Neo.ClientError.Procedure.ProcedureNotFound"
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • securityException

      @Experimental public SecurityException securityException()
      Returns the original security exception.
      Returns:
      the original security exception