Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sap.cloud.sdk.s4hana.connectivity.exception.RequestExecutionException
com.sap.cloud.sdk.s4hana.connectivity.exception.AccessDeniedException
- All Implemented Interfaces:
Serializable
Deprecated.
This module will be discontinued, along with its classes and methods.
Thrown when a certain service denies access to the requested resources.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.AccessDeniedException
(Principal principal, String missingAuthorizations) Deprecated.Constructor.AccessDeniedException
(String message) Deprecated.Constructor.AccessDeniedException
(String message, Throwable cause) Deprecated.Constructor.AccessDeniedException
(Throwable cause) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The missing authorization values.Deprecated.The principal reference.static AccessDeniedException
raiseMissingAuthorizations
(Principal principal, String missingAuthorizations) Deprecated.Static factory method to instantiate a new exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
principal
Deprecated.The principal reference. -
missingAuthorizations
Deprecated.The missing authorization values.
-
-
Constructor Details
-
AccessDeniedException
Deprecated.Constructor.- Parameters:
message
- The message.
-
AccessDeniedException
Deprecated.Constructor.- Parameters:
cause
- The error cause.
-
AccessDeniedException
Deprecated.Constructor.- Parameters:
message
- The message.cause
- The error cause.
-
AccessDeniedException
Deprecated.Constructor.- Parameters:
principal
- The principal reference.missingAuthorizations
- The missing authorization values.
-
AccessDeniedException
public AccessDeniedException()Deprecated.
-
-
Method Details
-
raiseMissingAuthorizations
@Nonnull public static AccessDeniedException raiseMissingAuthorizations(@Nullable Principal principal, @Nullable String missingAuthorizations) Deprecated.Static factory method to instantiate a new exception.- Parameters:
principal
- The principal reference.missingAuthorizations
- The missing authorization values.- Returns:
- The newly created exception.
-
getPrincipal
Deprecated.The principal reference. -
getMissingAuthorizations
Deprecated.The missing authorization values.
-