Package hamsam.exception

Examples of hamsam.exception.IllegalStateException


     * @param message Message to send
     * @see hamsam.protocol.Protocol#sendInstantMessage(hamsam.api.Buddy, hamsam.api.Message)
     */
    public void sendInstantMessage(Buddy buddy, Message message) throws IllegalStateException {
        if (!connected){
            throw new IllegalStateException("not connected yet!");
        }
        cmdHandler.sendInstantMessage(buddy, message);
    }
View Full Code Here


    /**
     * @see hamsam.protocol.Protocol#typingStarted(hamsam.api.Buddy)
     */
    public void typingStarted(Buddy buddy) throws UnsupportedOperationException, IllegalStateException {
        if (!connected) {
            throw new IllegalStateException("not connected yet!");
        }
        cmdHandler.typingStarted(buddy);
        // todo - how do I get notified that my buddy started typing??? Not working yet
        //listener.typingStarted(buddy);
    }
View Full Code Here

    /* (non-Javadoc)
     * @see hamsam.protocol.Protocol#typingStopped(hamsam.api.Buddy)
     */
    public void typingStopped(Buddy buddy) throws UnsupportedOperationException, IllegalStateException {
        if (!connected) {
            throw new IllegalStateException("not connected yet!");
        }
        cmdHandler.typingStopped(buddy);
        //todo - how do I get notified that my buddy stopped typing???
        //listener.typingStopped(buddy);
    }
View Full Code Here

TOP

Related Classes of hamsam.exception.IllegalStateException

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.