Class AccessTokenExpiredException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mule.runtime.api.exception.MuleRuntimeException
org.mule.sdk.api.connectivity.oauth.AccessTokenExpiredException
All Implemented Interfaces:
Serializable

@MinMuleVersion("4.5.0") public class AccessTokenExpiredException extends org.mule.runtime.api.exception.MuleRuntimeException
Exception to be thrown by operations which are trying to use an expired access token.

The runtime will automatically catch this exception, try to execute the refresh token flow and retry the operation. If the operation fails again or the token couldn't be refresh for whatever reason, then the operation will fail.

Since:
1.0
See Also:
  • Constructor Details

    • AccessTokenExpiredException

      public AccessTokenExpiredException()
      Creates a new instance using the literal default as a resourceOwnerId
    • AccessTokenExpiredException

      public AccessTokenExpiredException(String resourceOwnerId)
      Creates a new instance
      Parameters:
      resourceOwnerId - the id of the resource owner whose access token expired.
  • Method Details

    • getResourceOwnerId

      public String getResourceOwnerId()
      Returns:
      the id of the resource owner whose access token expired.