/** * Constructs an UnauthorizedException for the specified user's attempt to take a specified action. * * @param user * the current user * @param action * the action attempted */ public UnauthorizedException(User user, String action) { super(formatMessage(user, action, null)); }
/** * Constructs an UnauthorizedException for the specified user's attempt to take a specified action. * * @param user * the current user * @param action * the action attempted * @param acl * the access control list that prevented the action */ public UnauthorizedException(User user, String action, AccessControlList acl) { super(formatMessage(user, action, acl)); }