Class YamlValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.alexmond.yaml.validator.YamlValidationException
All Implemented Interfaces:
Serializable

public class YamlValidationException extends RuntimeException
Exception thrown when YAML validation against a JSON schema fails. This exception contains information about both the YAML file and schema file paths involved in the validation process.
See Also:
  • Constructor Details

    • YamlValidationException

      public YamlValidationException(String message, String yamlPath, String schemaPath)
      Constructs a new YamlValidationException with a specified error message and file paths.
      Parameters:
      message - the detailed error message describing the validation failure
      yamlPath - the path to the YAML file that failed validation
      schemaPath - the path to the JSON schema file used for validation
    • YamlValidationException

      public YamlValidationException(Throwable cause, String yamlPath, String schemaPath)
      Constructs a new YamlValidationException with a specified cause and file paths.
      Parameters:
      cause - the underlying cause of the validation failure
      yamlPath - the path to the YAML file that failed validation
      schemaPath - the path to the JSON schema file used for validation