public class AccessDeniedException extends QueryExecutionException
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
public AccessDeniedException(String message)
public AccessDeniedException(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)
public ResponseWithErrorCode getErrorResponse()
WithErrorResponse
getErrorResponse
in interface WithErrorResponse
getErrorResponse
in class QueryExecutionException
@Nullable public Set<Authorization> getMissingAuthorizations()
Copyright © 2018 SAP SE. All rights reserved.