class_docstr: Raised when a YAML file can not be parsed properly due to a syntax error.
code: def __init__(
      self,
      filename: Optional[Text] = None,
      underlying_yaml_exception: Optional[Exception] = None,
  ) -> None:
      super(YamlSyntaxException, self).__init__(filename)
  
      self.underlying_yaml_exception = underlying_yaml_exception
  
imports: import json
  from typing import Optional, Text
  import jsonschema
  from ruamel.yaml.error import MarkedYAMLError, MarkedYAMLWarning, MarkedYAMLFutureWarning
label_desc: Use image node_id 1 to create a new YamlSyntaxException object from inherited base classes: YamlException with example: obj = YamlSyntaxException(filename, underlying_yaml_exception)