Package dev.omnist.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.omnist.validation.ValidationException
- All Implemented Interfaces:
Serializable
Thrown by strict-mode validation calls when a
Document fails to conform
to a Schema (omnist-spec ยง3.6). Callers that only need
the pass/fail outcome and diagnostics without exception-based control flow should
use the non-throwing validate entry point and inspect its ValidationResult directly.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException(ValidationResult result) Constructs a validation exception carrying the full result that caused it. -
Method Summary
Modifier and TypeMethodDescriptionReturns the validation result that caused this exception, including every diagnostic collected before validation was aborted.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
Constructs a validation exception carrying the full result that caused it.- Parameters:
result- the failed validation result; itstoString()becomes this exception's message
-
-
Method Details
-
getResult
Returns the validation result that caused this exception, including every diagnostic collected before validation was aborted.
-