java.lang.Object
java.lang.Throwable
java.lang.Exception
net.i2p.I2PException
net.i2p.data.DataFormatException
net.i2p.router.transport.udp.InboundEstablishState2.RIException
- All Implemented Interfaces:
Serializable
- Enclosing class:
InboundEstablishState2
For throwing out of gotRI().
Constructor Summary
ConstructorsConstructorDescriptionRIException(String msg, int reason) Creates the RI exception.RIException(String msg, int reason, Throwable t) Creates the RI exception.Method Summary
All MethodsModifier and TypeMethodDescriptionBuild the detail message, prefixed with the numeric reason code.intRead the SessionCreated rejection code carried by this failure.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
RIException
Creates the RI exception.- Parameters:
msg- the detail messagereason- the reason code reported by getReason()
RIException
Method Details
getReason
public int getReason()Read the SessionCreated rejection code carried by this failure.- Returns:
- the numeric reason code
getMessage
Build the detail message, prefixed with the numeric reason code.- Overrides:
getMessagein classThrowable- Returns:
- the reason code followed by the underlying exception message