From 07f9b287e7a36a7f173c596516f0aba9292dd60f Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 10 Apr 2013 20:21:55 -0400 Subject: [PATCH] Move exceptions to their own package. This will break plugins that directly catch these exceptions. --- src/main/java/com/gmail/nossr50/api/ExperienceAPI.java | 2 ++ .../nossr50/api/{ => exceptions}/InvalidPlayerException.java | 2 +- .../nossr50/api/{ => exceptions}/InvalidSkillException.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename src/main/java/com/gmail/nossr50/api/{ => exceptions}/InvalidPlayerException.java (85%) rename src/main/java/com/gmail/nossr50/api/{ => exceptions}/InvalidSkillException.java (84%) diff --git a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java index 41c48edb3..65e338ebf 100644 --- a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java +++ b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java @@ -4,6 +4,8 @@ import java.util.Set; 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.datatypes.player.PlayerProfile; import com.gmail.nossr50.datatypes.skills.SkillType; diff --git a/src/main/java/com/gmail/nossr50/api/InvalidPlayerException.java b/src/main/java/com/gmail/nossr50/api/exceptions/InvalidPlayerException.java similarity index 85% rename from src/main/java/com/gmail/nossr50/api/InvalidPlayerException.java rename to src/main/java/com/gmail/nossr50/api/exceptions/InvalidPlayerException.java index a1ff9e847..47d065e4a 100644 --- a/src/main/java/com/gmail/nossr50/api/InvalidPlayerException.java +++ b/src/main/java/com/gmail/nossr50/api/exceptions/InvalidPlayerException.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.api; +package com.gmail.nossr50.api.exceptions; public class InvalidPlayerException extends RuntimeException { private static final long serialVersionUID = 907213002618581385L; diff --git a/src/main/java/com/gmail/nossr50/api/InvalidSkillException.java b/src/main/java/com/gmail/nossr50/api/exceptions/InvalidSkillException.java similarity index 84% rename from src/main/java/com/gmail/nossr50/api/InvalidSkillException.java rename to src/main/java/com/gmail/nossr50/api/exceptions/InvalidSkillException.java index 6dac7e13f..f94207a41 100644 --- a/src/main/java/com/gmail/nossr50/api/InvalidSkillException.java +++ b/src/main/java/com/gmail/nossr50/api/exceptions/InvalidSkillException.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.api; +package com.gmail.nossr50.api.exceptions; public class InvalidSkillException extends RuntimeException { private static final long serialVersionUID = 942705284195791157L;