|
||||||||||
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
java.net.SocketException
net.i2p.client.streaming.I2PSocketException
public class I2PSocketException
An I2P-specific IOException thrown from input and output streams, with a stored status code to be used for programmatic responses.
Field Summary | |
---|---|
static int |
STATUS_CONNECTION_RESET
Router and I2CP status codes are 0 - 511. |
Constructor Summary | |
---|---|
I2PSocketException(int status)
Use canned message for this status code. |
|
I2PSocketException(String message)
Use message provided |
Method Summary | |
---|---|
String |
getLocalizedMessage()
Translated |
String |
getMessage()
For programmatic action based on specific failure code |
int |
getStatus()
For programmatic action based on specific failure code |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, 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 int STATUS_CONNECTION_RESET
Constructor Detail |
---|
public I2PSocketException(int status)
status
- >= 0 from MessageStatusMessage or SendMessageStatusListenerpublic I2PSocketException(String message)
Method Detail |
---|
public int getStatus()
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |