public class ProtocolException extends RuntimeException
Constructor and Description |
---|
ProtocolException(Exception e,
Protocol p)
Constructs a new runtime exception for the specified protocol.
|
ProtocolException(Exception e,
Protocol p,
PacketReader r)
Constructs a new runtime exception for the specified protocol.
|
ProtocolException(ProtocolException e,
Packet pkt)
Constructs a new runtime exception for the specified packet and protocol.
|
ProtocolException(String m)
Constructs a new runtime exception with the specified detail message.
|
ProtocolException(String m,
Protocol p,
PacketReader r)
Constructs a new runtime exception for the specified protocol.
|
Modifier and Type | Method and Description |
---|---|
String |
decodeDebugString()
Returns the decode debug string associated with this exception or "".
|
Packet |
packet()
Returns the packet associated with this exception or null.
|
Protocol |
protocol()
Returns the protocol associated with this exception or null.
|
PacketReader |
reader()
Returns the packet reader associated with this exception or null.
|
Throwable |
rootCause()
Returns the root cause of this protocol exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ProtocolException(String m)
m
- the detail messagepublic ProtocolException(Exception e, Protocol p)
e
- original exceptionp
- the protocol associated with this exceptionpublic ProtocolException(String m, Protocol p, PacketReader r)
m
- the detail messagep
- the protocol associated with this exceptionr
- the reader associated with this exceptionpublic ProtocolException(Exception e, Protocol p, PacketReader r)
e
- original exceptionp
- the protocol associated with this exceptionr
- the reader associated with this exceptionpublic ProtocolException(ProtocolException e, Packet pkt)
e
- original protocol exceptionpkt
- the packet associated with this exceptionpublic PacketReader reader()
public Protocol protocol()
public Packet packet()
public Throwable rootCause()
public String decodeDebugString()
Copyright © 2016. All Rights Reserved.