public class UserNotInRoleException extends RuntimeException implements WithErrorResponse
Constructor and Description |
---|
UserNotInRoleException(User user,
Role role) |
UserNotInRoleException(User user,
Role role,
String message) |
UserNotInRoleException(User user,
Role role,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ResponseWithErrorCode |
getErrorResponse() |
Role |
getRole() |
User |
getUser() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UserNotInRoleException(@Nullable User user, @Nullable Role role, String message)
public ResponseWithErrorCode getErrorResponse()
getErrorResponse
in interface WithErrorResponse
@Nullable @Generated(value="lombok") public User getUser()
@Nullable @Generated(value="lombok") public Role getRole()
Copyright © 2017 SAP SE. All rights reserved.