summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <suror@gmx.co.uk>2011-09-22 17:29:00 +0100
committerementalo <suror@gmx.co.uk>2011-09-22 17:29:00 +0100
commit2844af0039436d6bad73977418f32d854ea6eecc (patch)
tree82444120393f34fff42106cfbfbf2f2182851c1e
parente9c0bb2133f57db55916f7fa6f6a67f73419cf25 (diff)
downloadEssentials-2844af0039436d6bad73977418f32d854ea6eecc.tar
Essentials-2844af0039436d6bad73977418f32d854ea6eecc.tar.gz
Essentials-2844af0039436d6bad73977418f32d854ea6eecc.tar.lz
Essentials-2844af0039436d6bad73977418f32d854ea6eecc.tar.xz
Essentials-2844af0039436d6bad73977418f32d854ea6eecc.zip
Throw correct exceptions Test #943
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmail.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
index 8b6dc8182..07710d40a 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
@@ -49,5 +49,6 @@ public class Commandinvsee extends EssentialsCommand
user.getInventory().setContents(invUserStack);
user.sendMessage(Util.format("invSee", invUser.getDisplayName()));
user.sendMessage(Util.i18n("invSeeHelp"));
+ throw new NoChargeException();
}
}
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
index a98fabbd2..e08a6c8e5 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
@@ -64,6 +64,6 @@ public class Commandmail extends EssentialsCommand
user.setMails(null);
throw new Exception(Util.i18n("mailCleared"));
}
- throw new NotEnoughArgumentsException();
+ throw new NoChargeException();
}
}