|
||||||||
| 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
net.zortrium.p2proto.PeerException
net.zortrium.p2proto.PeerErrorException
public class PeerErrorException
Exception indicating that a peer encountered an error while processing a
request message. This does not mean that the peer encountered an exception
itself -- it simply responded with a message indicating some sort of error.
Note that this is very distinct from a PeerTimeoutException, which
indicates that no response at all was received (error or otherwise).
| Method Summary | |
|---|---|
Msg |
getErrorMessage()
Get the content message sent with the error. |
String |
getErrorString()
Get the textual error message sent from the remote host. |
boolean |
hasErrorMessage()
Check whether the error was sent with a content message (in addition to the simple error string). |
String |
toString()
|
| Methods inherited from class net.zortrium.p2proto.PeerException |
|---|
getPeer, getRequest |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getErrorString()
getErrorMessage().
public boolean hasErrorMessage()
public Msg getErrorMessage()
public String toString()
toString in class PeerException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||