Package org.alexmond.yaml.validator
Class YamlValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.alexmond.yaml.validator.YamlValidationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionYamlValidationException(String message, String yamlPath, String schemaPath) Constructs a new YamlValidationException with a specified error message and file paths.YamlValidationException(Throwable cause, String yamlPath, String schemaPath) Constructs a new YamlValidationException with a specified cause and file paths. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
YamlValidationException
Constructs a new YamlValidationException with a specified error message and file paths.- Parameters:
message- the detailed error message describing the validation failureyamlPath- the path to the YAML file that failed validationschemaPath- the path to the JSON schema file used for validation
-
YamlValidationException
Constructs a new YamlValidationException with a specified cause and file paths.- Parameters:
cause- the underlying cause of the validation failureyamlPath- the path to the YAML file that failed validationschemaPath- the path to the JSON schema file used for validation
-