Module org.mule.sdk.api
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 Summary
ConstructorsConstructorDescriptionCreates a new instance using the literaldefaultas aresourceOwnerIdAccessTokenExpiredException(String resourceOwnerId) Creates a new instance -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccessTokenExpiredException
public AccessTokenExpiredException()Creates a new instance using the literaldefaultas aresourceOwnerId -
AccessTokenExpiredException
Creates a new instance- Parameters:
resourceOwnerId- the id of the resource owner whose access token expired.
-
-
Method Details
-
getResourceOwnerId
- Returns:
- the id of the resource owner whose access token expired.
-