Exception: TTTLS13::Error::ErrorAlerts

Inherits:
Error
  • Object
show all
Defined in:
lib/tttls1.3/error.rb

Overview

Raised on received Error Alerts message or invalid message. tools.ietf.org/html/rfc8446#section-6.2 Terminated the connection, so you cannot recover from this exception.

Instance Method Summary collapse

Instance Method Details

#to_alertTTTLS13::Message::Alert



17
18
19
# File 'lib/tttls1.3/error.rb', line 17

def to_alert
  Message::Alert.new(description: ALERT_DESCRIPTION[message.to_sym])
end