2008-07-15 04:59:21 +02:00
|
|
|
package org.jivesoftware.smack.proxy;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An exception class to handle exceptions caused by proxy.
|
|
|
|
*
|
|
|
|
* @author Atul Aggarwal
|
|
|
|
*/
|
|
|
|
public class ProxyException
|
|
|
|
extends IOException
|
|
|
|
{
|
|
|
|
public ProxyException(ProxyInfo.ProxyType type, String ex, Throwable cause)
|
|
|
|
{
|
2008-07-15 05:17:43 +02:00
|
|
|
super("Proxy Exception " + type.toString() + " : "+ex+", "+cause);
|
2008-07-15 04:59:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public ProxyException(ProxyInfo.ProxyType type, String ex)
|
|
|
|
{
|
|
|
|
super("Proxy Exception " + type.toString() + " : "+ex);
|
|
|
|
}
|
|
|
|
|
|
|
|
public ProxyException(ProxyInfo.ProxyType type)
|
|
|
|
{
|
|
|
|
super("Proxy Exception " + type.toString() + " : " + "Unknown Error");
|
|
|
|
}
|
|
|
|
}
|