Class ConfigValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.jspinak.brobot.json.schemaValidation.exception.ConfigValidationException
- All Implemented Interfaces:
Serializable
Exception thrown when configuration validation fails.
This exception contains detailed validation results that can be used
to report specific issues with the configuration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigValidationException
(ValidationResult validationResult) Creates a new exception with the given validation result.ConfigValidationException
(String message) Creates a new exception with the given message.ConfigValidationException
(String message, ValidationResult validationResult) Creates a new exception with the given message and validation result.ConfigValidationException
(String message, Throwable cause) Creates a new exception with a cause.ConfigValidationException
(String message, Throwable cause, ValidationResult validationResult) Creates a new exception with a cause and validation result. -
Method Summary
Modifier and TypeMethodDescriptionGets the validation result associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigValidationException
Creates a new exception with the given message.- Parameters:
message
- Error message
-
ConfigValidationException
Creates a new exception with the given validation result.- Parameters:
validationResult
- Result containing validation errors
-
ConfigValidationException
Creates a new exception with the given message and validation result.- Parameters:
message
- Error messagevalidationResult
- Result containing validation errors
-
ConfigValidationException
Creates a new exception with a cause.- Parameters:
message
- Error messagecause
- Exception that caused the validation failure
-
ConfigValidationException
public ConfigValidationException(String message, Throwable cause, ValidationResult validationResult) Creates a new exception with a cause and validation result.- Parameters:
message
- Error messagecause
- Exception that caused the validation failurevalidationResult
- Result containing validation errors
-
-
Method Details
-
getValidationResult
Gets the validation result associated with this exception.- Returns:
- Validation result
-