1from typing import TYPE_CHECKING 2 3if TYPE_CHECKING: 4 from tls_parser.record_protocol import TlsRecordTypeByte 5 6 7class NotEnoughData(ValueError): 8 pass 9 10 11class UnknownTypeByte(ValueError): 12 pass 13 14 15class UnknownTlsVersionByte(ValueError): 16 def __init__(self, message, record_type): 17 # type: (str, TlsRecordTypeByte) -> None 18 super(ValueError, self).__init__(message) 19 self.record_type = record_type 20