public class AccessDeniedException extends QueryExecutionException
Modifier and Type | Field and Description |
---|---|
protected Set<Authorization> |
missingAuthorizations |
protected User |
user |
Constructor and Description |
---|
AccessDeniedException() |
AccessDeniedException(String message) |
AccessDeniedException(String message,
Throwable cause) |
AccessDeniedException(Throwable cause) |
AccessDeniedException(User user,
Set<Authorization> missingAuthorizations) |
Modifier and Type | Method and Description |
---|---|
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
Set<Authorization> |
getMissingAuthorizations() |
User |
getUser() |
static AccessDeniedException |
raiseMissingAuthorizations(User user,
Iterable<? extends Authorization> missingAuthorizations) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Nullable protected transient Set<Authorization> missingAuthorizations
public AccessDeniedException(@Nullable String message, @Nullable Throwable cause)
public AccessDeniedException(@Nullable User user, @Nullable Set<Authorization> missingAuthorizations)
public AccessDeniedException()
public static AccessDeniedException raiseMissingAuthorizations(@Nullable User user, @Nullable Iterable<? extends Authorization> missingAuthorizations)
@Nonnull public ResponseWithErrorCode getErrorResponse()
getErrorResponse
in interface WithErrorResponse
getErrorResponse
in class QueryExecutionException
@Nullable public Set<Authorization> getMissingAuthorizations()
Copyright © 2019 SAP SE. All rights reserved.