Move exceptions to their own package.

This will break plugins that directly catch these exceptions.
This commit is contained in:
GJ 2013-04-10 20:21:55 -04:00
parent fbee4f1b37
commit 07f9b287e7
3 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import java.util.Set;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.gmail.nossr50.api.exceptions.InvalidPlayerException;
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.datatypes.player.PlayerProfile; import com.gmail.nossr50.datatypes.player.PlayerProfile;
import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.datatypes.skills.SkillType;

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.api; package com.gmail.nossr50.api.exceptions;
public class InvalidPlayerException extends RuntimeException { public class InvalidPlayerException extends RuntimeException {
private static final long serialVersionUID = 907213002618581385L; private static final long serialVersionUID = 907213002618581385L;

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.api; package com.gmail.nossr50.api.exceptions;
public class InvalidSkillException extends RuntimeException { public class InvalidSkillException extends RuntimeException {
private static final long serialVersionUID = 942705284195791157L; private static final long serialVersionUID = 942705284195791157L;