| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
socks.SocksException
public class SocksException
Exception thrown by various socks classes to indicate errors with protocol or unsuccessfull server responses.
| 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, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SocksException(int errCode)
Tries to look up message which corresponds to this error code.
errCode - Error code for this exception.
public SocksException(int errCode,
                      java.lang.String errString)
errCode - Error code.errString - Error Message.| Method Detail | 
|---|
public int getErrorCode()
public java.lang.String toString()
toString in class java.lang.Throwable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||