Package org.jaibo.api.errors

Examples of org.jaibo.api.errors.ExtensionError


    private static int ObjectCount = 0;
    private final static int MaxObjectCount = 1;

    public Object() {
        if (Object.ObjectCount >= Object.MaxObjectCount) {
            throw new ExtensionError(this.getExtensionName(),
                    String.format("Can't create core extension objects with count more than %s.",
                            Object.MaxObjectCount));
        } else {
            Object.ObjectCount++;
        }
View Full Code Here


        return BotConfiguration.get("aibo.HelpPage");
    }

    @Override
    protected void beforeUnload() {
        throw new ExtensionError(this.getExtensionName(), "Can't unload extension");
    }
View Full Code Here

        }
    }

    private String getNickName() {
        if (Login.CurrentNicknameIndex >= this.nicknames.length) {
            throw new ExtensionError(this.object.getExtensionName(), "All nicknames are already in use");
        } else {
            return this.nicknames[Login.CurrentNicknameIndex++];
        }
    }
View Full Code Here

        }
    }

    private String getIdentity() {
        if (Login.CurrentIdentityIndex >= this.identities.length) {
            throw new ExtensionError(this.object.getExtensionName(), "All identities are already in use");
        } else {
            return this.identities[Login.CurrentIdentityIndex++];
        }
    }
View Full Code Here

TOP

Related Classes of org.jaibo.api.errors.ExtensionError

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.