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() |
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)
@Generated(value="lombok") public AccessDeniedException()
public static AccessDeniedException raiseMissingAuthorizations(@Nullable User user, @Nullable Iterable<? extends Authorization> missingAuthorizations)
public ResponseWithErrorCode getErrorResponse()
getErrorResponse
in interface WithErrorResponse
getErrorResponse
in class QueryExecutionException
@Nullable @Generated(value="lombok") public User getUser()
@Nullable @Generated(value="lombok") public Set<Authorization> getMissingAuthorizations()
Copyright © 2017 SAP SE. All rights reserved.