@ExceptionMatch public void convert(EmptyClipboardException e) throws CommandException { throw new CommandException("Your clipboard is empty. Use //copy first."); }
@ExceptionMatch public void convert(IncompleteRegionException e) throws CommandException { throw new CommandException("Make a region selection first."); }
@ExceptionMatch public void convert(FileSelectionAbortedException e) throws CommandException { throw new CommandException("File selection aborted."); }
@ExceptionMatch public void convert(NumberFormatException e) throws CommandException { final Matcher matcher = numberFormat.matcher(e.getMessage()); if (matcher.matches()) { throw new CommandException("Number expected; string \"" + matcher.group(1) + "\" given."); } else { throw new CommandException("Number expected; string given."); } }
@ExceptionMatch public void convert(DisallowedItemException e) throws CommandException { throw new CommandException("Block '" + e.getID() + "' not allowed (see WorldEdit configuration)."); }
@ExceptionMatch public void convert(MaxChangedBlocksException e) throws CommandException { throw new CommandException("Max blocks changed in an operation reached (" + e.getBlockLimit() + ")."); }
@ExceptionMatch public void convert(MaxBrushRadiusException e) throws CommandException { throw new CommandException("Maximum brush radius (in configuration): " + worldEdit.getConfiguration().maxBrushRadius); }
@ExceptionMatch public void convert(RegionOperationException e) throws CommandException { throw new CommandException(e.getMessage()); }
@ExceptionMatch public void convert(MaxRadiusException e) throws CommandException { throw new CommandException("Maximum radius (in configuration): " + worldEdit.getConfiguration().maxRadius); }
@ExceptionMatch public void convert(WorldEditException e) throws CommandException { throw new CommandException(e.getMessage(), e); }
@ExceptionMatch public void convert(InvalidItemException e) throws CommandException { throw new CommandException(e.getMessage()); }
@ExceptionMatch public void convert(UnknownDirectionException e) throws CommandException { throw new CommandException("Unknown direction: " + e.getDirection()); }
@ExceptionMatch public void convert(InsufficientArgumentsException e) throws CommandException { throw new CommandException(e.getMessage()); }
@ExceptionMatch public void convert(UnknownItemException e) throws CommandException { throw new CommandException("Block name '" + e.getID() + "' was not recognized."); }
@ExceptionMatch public void convert(ExpressionException e) throws CommandException { throw new CommandException(e.getMessage()); }
@ExceptionMatch public void convert(InvalidFilenameException e) throws CommandException { throw new CommandException("Filename '" + e.getFilename() + "' invalid: " + e.getMessage()); }
@ExceptionMatch public void convert(FilenameResolutionException e) throws CommandException { throw new CommandException( "File '" + e.getFilename() + "' resolution error: " + e.getMessage()); }
@ExceptionMatch public void convert(InvalidToolBindException e) throws CommandException { throw new CommandException("Can't bind tool to " + e.getItemType().getName() + ": " + e.getMessage()); }
@ExceptionMatch public void convert(InterruptedException e) throws CommandException { throw new CommandException("WorldGuard: Task was interrupted.", e); }
@ExceptionMatch public void convert(CancellationException e) throws CommandException { throw new CommandException("WorldGuard: Task was cancelled.", e); }