DtlsEngine.lastError

TlsError lastError() @property

The typed error for the most recent TlsProgress.ERROR returned by this engine's operations.

Engine operations (handshake, processDatagram, checkTimers, flush) never throw for TLS failures; the details — alert, certificate failure, or internal error — are always available here, mirroring TlsStream.lastError in the TLS API.

Returns

The last error, or TlsError.init if no error occurred.