|
||||||||||
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
com.limegroup.gnutella.handshaking.NoGnutellaOkException
Exception thrown when someone understands responds with a handshaking code other than 200 or 401.
Field Summary | |
static NoGnutellaOkException |
CLIENT_REJECT
Cached NoGnutellaOkException for the case where we as the client are rejecting the connection with a 503. |
static NoGnutellaOkException |
SERVER_REJECT
Cached NoGnutellaOkException for the case where the server rejected the connection with a 503. |
static NoGnutellaOkException |
UNRESOLVED_CLIENT
Cached NoGnutellaOkException for the case where the handshake never resolved successfully on the cleint side. |
static NoGnutellaOkException |
UNRESOLVED_SERVER
Cached NoGnutellaOkException for the case where the handshake never resolved successfully on the server side. |
Method Summary | |
static NoGnutellaOkException |
createClientUnknown(int code)
Creates a new NoGnutellaOkException from an unknown client response. |
static NoGnutellaOkException |
createServerUnknown(int code)
Creates a new NoGnutellaOkException from an unknown server response. |
int |
getCode()
The offending status code. |
boolean |
wasMe()
Returns true if the exception was caused by something this host wrote. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final NoGnutellaOkException SERVER_REJECT
public static final NoGnutellaOkException CLIENT_REJECT
public static final NoGnutellaOkException UNRESOLVED_CLIENT
public static final NoGnutellaOkException UNRESOLVED_SERVER
Method Detail |
public static NoGnutellaOkException createClientUnknown(int code)
code
- the response code from the serverpublic static NoGnutellaOkException createServerUnknown(int code)
code
- the response code from the serverpublic boolean wasMe()
public int getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |