java.lang.Object
java.lang.Throwable
java.lang.Exception
net.i2p.I2PException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataFormatException, I2CPMessageException, I2NPMessageException, I2PSessionException, RouterRestartException, TooManyStreamsException
Base class of I2P exceptions
This was originally used to provide chained exceptions, but those were added to Exception in Java 1.4, so this class provides nothing extra at the moment.
- See Also:
Constructor Summary
ConstructorsConstructorDescriptionConstructs an exception carrying no detail message.I2PException(String msg) Constructs an exception carrying the specified detail message.I2PException(String msg, Throwable cause) Constructs an exception carrying the specified detail message and wrapping the underlying failure.I2PException(Throwable cause) Constructs an exception that wraps the underlying failure, deriving the detail message from it.Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
I2PException
public I2PException()Constructs an exception carrying no detail message.I2PException
Constructs an exception carrying the specified detail message.- Parameters:
msg- the detail message describing the failure
I2PException
I2PException
Constructs an exception that wraps the underlying failure, deriving the detail message from it.- Parameters:
cause- the underlying failure that triggered this exception