Package org.johnnei.javatorrent.torrent
Class TorrentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.johnnei.javatorrent.torrent.TorrentException
-
- All Implemented Interfaces:
Serializable
public class TorrentException extends RuntimeException
An exception class which allows for checked exception which cannot be gracefully handled within the Torrent logic to be thrown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TorrentException(String message)Creates a new torrent exception.TorrentException(String message, Throwable cause)Creates a new torrent exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TorrentException
public TorrentException(String message, Throwable cause)
Creates a new torrent exception.- Parameters:
message- The reason this is fatal to the torrent logic.cause- The causing exception.
-
TorrentException
public TorrentException(String message)
Creates a new torrent exception.- Parameters:
message- The reason this is fatal to the torrent logic.
-
-