package apz.pirichat.shared;

/*
    PiriNotConnectedException

    Our custom exception; this is thrown whenever we attempt to access a method
    if our socket is not connected

*/

public class PiriNotChatMessageException extends PiriException
{
    private Object mObject;

    public PiriNotChatMessageException(Object pObject)
    {
        super();
        mObject = pObject;
    }

    public String toString()
    {
        return "Object " + mObject.toString() + " of type " + mObject.getClass().getName() + " is not a chat message";
    }
}
