public class DtlsException extends RuntimeException
DtlsException is the superclass of those exceptions that can be thrown
in the context of a DTLS connection with a peer.| Constructor and Description |
|---|
DtlsException(String message,
InetSocketAddress peer)
Constructs a new DTLS exception with the specified detail message and peer address.
|
DtlsException(String message,
InetSocketAddress peer,
Throwable cause)
Constructs a new DTLS exception with the specified detail message, peer address and cause.
|
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getPeer()
The IP and port of the peer of the DTLS connection.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DtlsException(String message, InetSocketAddress peer)
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).peer - the IP address and port of the DTLS connection peerpublic DtlsException(String message, InetSocketAddress peer, Throwable cause)
Note that the detail message associated with cause is not automatically incorporated
in this DTLS exception's detail message.
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).peer - the IP address and port of the DTLS connection peercause - the cause (which is saved for later retrieval by the Throwable.getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)public final InetSocketAddress getPeer()
This exception has occurred in the context of a connection with the peer identified by the returned address.
Before 2.3, behavior about returningnull was undefined.
null because the attached
connection could have lost its peer address (E.g. the peer address is
assigned to another connection).null if DTLS connection has no more
peer address attached.Copyright © 2023 Eclipse Foundation. All rights reserved.