Examples of CommandException


Examples of com.sk89q.minecraft.util.commands.CommandException

        throw new CommandException(e.getMessage());
    }

    @ExceptionMatch
    public void convert(ExpressionException e) throws CommandException {
        throw new CommandException(e.getMessage());
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

        throw new CommandException(e.getMessage());
    }

    @ExceptionMatch
    public void convert(EmptyClipboardException e) throws CommandException {
        throw new CommandException("Your clipboard is empty. Use //copy first.");
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

        throw new CommandException("Your clipboard is empty. Use //copy first.");
    }

    @ExceptionMatch
    public void convert(InvalidFilenameException e) throws CommandException {
        throw new CommandException("Filename '" + e.getFilename() + "' invalid: "
                + e.getMessage());
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

                + e.getMessage());
    }

    @ExceptionMatch
    public void convert(FilenameResolutionException e) throws CommandException {
        throw new CommandException(
                "File '" + e.getFilename() + "' resolution error: " + e.getMessage());
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

                "File '" + e.getFilename() + "' resolution error: " + e.getMessage());
    }

    @ExceptionMatch
    public void convert(InvalidToolBindException e) throws CommandException {
        throw new CommandException("Can't bind tool to "
                + ItemType.toHeldName(e.getItemId()) + ": " + e.getMessage());
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

                + ItemType.toHeldName(e.getItemId()) + ": " + e.getMessage());
    }

    @ExceptionMatch
    public void convert(FileSelectionAbortedException e) throws CommandException {
        throw new CommandException("File selection aborted.");
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.CommandException

        throw new CommandException("File selection aborted.");
    }

    @ExceptionMatch
    public void convert(WorldEditException e) throws CommandException {
        throw new CommandException(e.getMessage(), e);
    }
View Full Code Here

Examples of com.sun.enterprise.cli.framework.CommandException

        CLILogger.getInstance().printMessage(mgr.list());
      }
      else
      {
        // IMPOSSIBLE!!!
        throw new CommandException("Internal Error");
      }
    }
    catch(BackupWarningException bwe)
    {
      CLILogger.getInstance().printMessage(bwe.getMessage());
    }
    catch(BackupException be)
    {
      throw new CommandException(be);
    }
  }
View Full Code Here

Examples of de.innovationgate.utils.remote.commands.CommandException

                                String clientVersion = ((Connect)command).getClientVersion();
                                if (clientVersion.equals(getVersion())) {
                                  _log.info("client version accepted");
                                  sendResponse(new Boolean(true));
                                } else {
                                  throw new CommandException("Invalid client version '" + clientVersion + "'.");
                                }                               
                            } else if (command instanceof Disconnect) {
                                _log.info("disconnect command from client '" + _client.getInetAddress() + "' recieved.");
                                sendResponse(new Boolean(true));
                                break;
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.exceptions.CommandException

        if (clazz == null) {
            try {
                bot.pluginManager.load(args.getOrError(1));
                print("Done.");
            } catch (PluginNotFoundException e) {
                throw new CommandException("Unknown Plugin");
            } catch (InvalidPluginException e) {
                throw new CommandException("Invalid Plugin:" + e.getMessage());
            } catch (ClassNotFoundException e) {
                throw new CommandException("Plugin Class not found");
            } catch (IOException e) {
                throw new CommandException("IOException: " + e.getMessage());
            } catch (InstantiationException e) {
                throw new CommandException("Could not create plugin: " + e.getMessage());
            } catch (IllegalAccessException e) {
                throw new CommandException("Constructor was private");
            } catch (PluginAlreadyLoadedException e) {
                throw new CommandException("Plugin already loaded");
            }
        } else {
            try {
                bot.pluginManager.loadInternal(clazz, args.getOrError(1));
                if (args.getNamedParam('n') == null && args.getNamedParam("noenable") == null)
                    bot.pluginManager.enable(args.getOrError(1));
                print("Done.");
            } catch (IllegalAccessException e) {
                throw new CommandException("Could not access constructor for Plugin");
            } catch (InstantiationException e) {
                throw new CommandException("Could not create new Plugin");
            } catch (ClassNotFoundException e) {
                throw new CommandException("Invalid Class");
            } catch (PluginAlreadyLoadedException e) {
                throw new CommandException("Plugin already loaded");
            } catch (InvalidPluginException e) {
                throw new CommandException("Invalid plugin: " + e.getMessage());
            } catch (PluginNotFoundException e) {
                throw new CommandException("Plugin does not exist");
            }
        }
    }
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.