Package org.ossnipes.snipes.lib.irc

Examples of org.ossnipes.snipes.lib.irc.SnipesException


         
          // Returns false if the Object did not exist in the first place.
          if (!_channels.remove(getChannelForName(chanName)))
          {
            // We didn't have it in our lists? But we were parting it!
            throw new SnipesException("Channel was not in the lists, yet we parted it.");
          }
        }
      }
    }
    else if (ev == Event.IRC_NICKINUSE && (Boolean)args.getParam("fatal"))
View Full Code Here


  {
    // Final result
    String nick = _nick;
    if (nick.length() == 0)
    {
      throw new SnipesException("User's nick is empty.");
    }
    //TODO: More checking for user nicks and other things, this includes a handler for the mode event.
    else if (!withPrefix && BotUtils.arrayContains(IRC_NICKPREFIXES, nick.charAt(0)))
    {
      nick = nick.substring(1);
View Full Code Here

            break;
          }
        }
        if (user == null)
        {
          throw new SnipesException(nick + " was not found in the list of users, yet they parted channel " + getName() + ".");
        }
        else
        {
          _currentUsers.remove(user);
        }
View Full Code Here

  @Override
  public void handleInternalEvent(Event ev, EventArgs args)
  {
    if (!isIRCBase())
    {
      throw new SnipesException("Cannot handle internal events on a non-IRCBase object.");
    }
    else
    {
      ((IRCBase)_managed).handleInternalEvent(ev, args);
    }
View Full Code Here

TOP

Related Classes of org.ossnipes.snipes.lib.irc.SnipesException

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.