socks
Class SocksException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--socks.SocksException
- public class SocksException
- extends java.io.IOException
Exception thrown by various socks classes to indicate errors
with protocol or unsuccessfull server responses.
- See Also:
- Serialized Form
|
Constructor Summary |
SocksException(int errCode)
Construct a SocksException with given errorcode. |
SocksException(int errCode,
java.lang.String errString)
Constructs a SocksException with given error code and message. |
|
Method Summary |
int |
getErrorCode()
Get the error code associated with this exception. |
java.lang.String |
toString()
Get human readable representation of this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SocksException
public SocksException(int errCode)
- Construct a SocksException with given errorcode.
Tries to look up message which corresponds to this error code.
- Parameters:
errCode - Error code for this exception.
SocksException
public SocksException(int errCode,
java.lang.String errString)
- Constructs a SocksException with given error code and message.
- Parameters:
errCode - Error code.errString - Error Message.
getErrorCode
public int getErrorCode()
- Get the error code associated with this exception.
- Returns:
- Error code associated with this exception.
toString
public java.lang.String toString()
- Get human readable representation of this exception.
- Overrides:
- toString in class java.lang.Throwable
- Returns:
- String represntation of this exception.