DtlsPeer.lastError

TlsError lastError() @property

The typed error for the most recent failure reported through this peer's operations, mirroring TlsStream.lastError.

Returns

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