Skip to content

Commit

Permalink
Permission exception for getprofileposts
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Mar 29, 2018
1 parent 78b60a4 commit 9020879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
* Created by Maxim on 29/03/2018.
*/
public class PermissionException extends Exception {

}
3 changes: 2 additions & 1 deletion src/main/java/be/maximvdw/spigotsite/api/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import be.maximvdw.spigotsite.api.exceptions.ConnectionFailedException;
import be.maximvdw.spigotsite.api.exceptions.PermissionException;
import be.maximvdw.spigotsite.api.forum.ProfilePost;
import be.maximvdw.spigotsite.api.resource.Resource;

Expand Down Expand Up @@ -86,5 +87,5 @@ List<Resource> getPurchasedResources()
* @return list of profile posts
* @throws ConnectionFailedException
*/
List<ProfilePost> getProfilePosts(User authenticatedUser, int count) throws ConnectionFailedException;
List<ProfilePost> getProfilePosts(User authenticatedUser, int count) throws ConnectionFailedException, PermissionException;
}

0 comments on commit 9020879

Please sign in to comment.