package ymsg.network;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.lang.Throwable;
public class Main
{
public static void main(String[] args)
{
{
Session ss = new Session();
try
{
ss.login("username", "password");
}
catch (IllegalStateException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
catch (IOException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
catch (AccountLockedException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
catch (LoginRefusedException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
}