class_docstr: Raised if a yaml file does not correspond to the expected schema.
class_docstr_tok: ["Raised","if","a","yaml","file","does","not","correspond","to","the","expected","schema","."]
docstr: Create The Error.
  
  Args:
      message: error message
      validation_errors: validation errors
      filename: name of the file which was validated
      content: yaml content loaded from the file (used for line information)
docstr_tok: ["Create","The","Error",".","Args",":","message",":","error","message","validation_errors",":","validation","errors","filename",":","name","of","the","file","which","was","validated","content",":","yaml","content","loaded","from","the","file","(","used","for","line","information",")"]
code: def __init__(
      self,
      message: Text,
      validation_errors: Optional[
          List[SchemaError.SchemaErrorEntry]
      ] = None,
      filename: Optional[Text] = None,
      content: Any = None,
  ) -> None:
      """Create The Error.
  
      Args:
          message: error message
          validation_errors: validation errors
          filename: name of the file which was validated
          content: yaml content loaded from the file (used for line information)
      """
      super(YamlValidationException, self).__init__(filename)
  
      self.message = message
      self.validation_errors = validation_errors
      self.content = content
  
imports: import logging
  import os
  from typing import Text, Dict, List, Optional, Any
  from packaging import version
  from packaging.version import LegacyVersion
  from pykwalify.errors import SchemaError
  from ruamel.yaml.constructor import DuplicateKeyError
  import rasa.shared
  from rasa.shared.exceptions import YamlException, YamlSyntaxException, SchemaValidationError
  import rasa.shared.utils.io
  from rasa.shared.constants import DOCS_URL_TRAINING_DATA, PACKAGE_NAME, LATEST_TRAINING_DATA_FORMAT_VERSION, SCHEMA_EXTENSIONS_FILE, RESPONSES_SCHEMA_FILE
label_desc: Use image node_id 1 to create a new YamlValidationException object from inherited base classes: YamlException, ValueError with example: obj = YamlValidationException(message, validation_errors, filename, content)