Class DestinationOAuthTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationOAuthTokenException
- All Implemented Interfaces:
Serializable
This exception is thrown, when the authentication failed because of problems in OAuth.
- See Also:
-
Constructor Summary
ConstructorDescriptionDestinationOAuthTokenException
(String destinationName) Initializes the exception by setting a custom message based on the name of the causing destination.DestinationOAuthTokenException
(String destinationName, String message) Initializes the exception by delegating the message and the name of the destination causing the exception to the super constructor.DestinationOAuthTokenException
(String destinationName, String message, Throwable cause) Initializes the exception by delegating the causing exception, the message, and the name of the destination causing the exception to the super constructor.DestinationOAuthTokenException
(String destinationName, Throwable cause) Initializes the exception by delegating the causing exception and the name of the destination causing the exception to the super constructor. -
Method Summary
Methods inherited from class com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException
getDestinationName
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DestinationOAuthTokenException
Initializes the exception by setting a custom message based on the name of the causing destination.- Parameters:
destinationName
- The name of the destination causing this exception.
-
DestinationOAuthTokenException
Initializes the exception by delegating the message and the name of the destination causing the exception to the super constructor.- Parameters:
destinationName
- The name of the destination causing this exception.message
- The exception message.
-
DestinationOAuthTokenException
Initializes the exception by delegating the causing exception and the name of the destination causing the exception to the super constructor.- Parameters:
destinationName
- The name of the destination causing this exception.cause
- The exception that caused the exception to be created.
-
DestinationOAuthTokenException
public DestinationOAuthTokenException(@Nullable String destinationName, @Nullable String message, @Nullable Throwable cause) Initializes the exception by delegating the causing exception, the message, and the name of the destination causing the exception to the super constructor.- Parameters:
destinationName
- The name of the destination causing this exception.message
- The exception message.cause
- The exception that caused the exception to be created.
-
DestinationOAuthTokenException
public DestinationOAuthTokenException()
-