Class BitTorrentProtocolViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.johnnei.javatorrent.bittorrent.protocol.BitTorrentProtocolViolationException
-
- All Implemented Interfaces:
Serializable
public class BitTorrentProtocolViolationException extends RuntimeException
Exception to throw when the remote end violates the contract of the BitTorrent protocol.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BitTorrentProtocolViolationException(String message)Creates a new Protocol Violation exception.BitTorrentProtocolViolationException(String message, Throwable cause)Creates a new Protocol Violation 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
-
BitTorrentProtocolViolationException
public BitTorrentProtocolViolationException(String message)
Creates a new Protocol Violation exception.- Parameters:
message- The reason why the protocol was violated.
-
-