Package com.sk89q.minecraft.util.commands

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


                    mapping.getCallable().call(subArguments, locals, subParents);
                } catch (CommandException e) {
                    e.prependStack(subCommand);
                    throw e;
                } catch (Throwable t) {
                    throw new WrappedCommandException(t);
                }

                return true;
            }
View Full Code Here


                    handler.method.invoke(this, t);
                } catch (InvocationTargetException e) {
                    if (e.getCause() instanceof CommandException) {
                        throw (CommandException) e.getCause();
                    }
                    throw new WrappedCommandException(e);
                } catch (IllegalArgumentException e) {
                    throw new WrappedCommandException(e);
                } catch (IllegalAccessException e) {
                    throw new WrappedCommandException(e);
                }
            }
        }
    }
View Full Code Here

            throw new InvalidUsageException("For parameter '" + name + "': " + e.getMessage(), this);
        } catch (InvocationTargetException e) {
            for (ExceptionConverter converter : builder.getExceptionConverters()) {
                converter.convert(e.getCause());
            }
            throw new WrappedCommandException(e);
        } catch (IllegalArgumentException e) {
            throw new WrappedCommandException(e);
        } catch (CommandException e) {
            throw e;
        } catch (Throwable e) {
            throw new WrappedCommandException(e);
        }

        return true;
    }
View Full Code Here

TOP

Related Classes of com.sk89q.minecraft.util.commands.WrappedCommandException

Copyright © 2018 www.massapicom. 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.