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
Thrown when a certain service denies access to the requested resources.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<Authorization>The missing authorization values.protected PrincipalThe principal reference. -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedException(Principal principal, Set<Authorization> missingAuthorizations) Constructor.AccessDeniedException(String message) Constructor.AccessDeniedException(String message, Throwable cause) Constructor.AccessDeniedException(Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe missing authorization values.The principal reference.static AccessDeniedExceptionraiseMissingAuthorizations(Principal principal, Iterable<? extends Authorization> missingAuthorizations) 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
The principal reference. -
missingAuthorizations
The missing authorization values.
-
-
Constructor Details
-
AccessDeniedException
Constructor.- Parameters:
message- The message.
-
AccessDeniedException
Constructor.- Parameters:
cause- The error cause.
-
AccessDeniedException
Constructor.- Parameters:
message- The message.cause- The error cause.
-
AccessDeniedException
public AccessDeniedException(@Nullable Principal principal, @Nullable Set<Authorization> missingAuthorizations) Constructor.- Parameters:
principal- The principal reference.missingAuthorizations- The missing authorization values.
-
AccessDeniedException
public AccessDeniedException()
-
-
Method Details
-
raiseMissingAuthorizations
@Nonnull public static AccessDeniedException raiseMissingAuthorizations(@Nullable Principal principal, @Nullable Iterable<? extends Authorization> missingAuthorizations) Static factory method to instantiate a new exception.- Parameters:
principal- The principal reference.missingAuthorizations- The missing authorization values.- Returns:
- The newly created exception.
-
getPrincipal
The principal reference. -
getMissingAuthorizations
The missing authorization values.
-