Examples of InvalidArgumentsException


Examples of net.aufdemrand.denizencore.exceptions.InvalidArgumentsException

        // Produce error if there is no file and the "cancel" argument was
        // not used
        if (!scriptEntry.hasObject("file")
            && !scriptEntry.hasObject("cancel"))
            throw new InvalidArgumentsException("Missing file (Midi name) argument!");

        if (!scriptEntry.hasObject("location")) {
            scriptEntry.defaultObject("entities", (((BukkitScriptEntryData)scriptEntry.entryData).hasPlayer() ? Arrays.asList(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer().getDenizenEntity()) : null),
                                                  (((BukkitScriptEntryData)scriptEntry.entryData).hasNPC() ? Arrays.asList(((BukkitScriptEntryData)scriptEntry.entryData).getNPC().getDenizenEntity()) : null));
        }
View Full Code Here

Examples of org.wymiwyg.commons.util.arguments.InvalidArgumentsException

      argumentHandler.processArguments(new ArgumentProcessor() {

        @Override
        public void process(List<String> remaining) throws InvalidArgumentsException {
          if (remaining.size() > 0) {
            throw new InvalidArgumentsException("The following arguments could not be understood: " + remaining);
          }
        }
      });
    } catch (InvalidArgumentsException e) {
      System.out.println(e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.