def validate_payload_len(self, payload):
if not hasattr(self, "<STR_LIT>"):<EOL><INDENT>return<EOL><DEDENT>if len(payload) != self.PAYLOAD_LEN:<EOL><INDENT>raise PyVLXException("<STR_LIT>", expected_len=self.PAYLOAD_LEN, current_len=len(payload), frame_type=type(self).__name__)<EOL><DEDENT>
Validate payload len.