Class ValidationException

All Implemented Interfaces:
Serializable

public class ValidationException extends RuntimeException
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 Details

    • ValidationException

      public ValidationException(ValidationResult result)
      Constructs a validation exception carrying the full result that caused it.
      Parameters:
      result - the failed validation result; its toString() becomes this exception's message
  • Method Details

    • getResult

      public ValidationResult getResult()
      Returns the validation result that caused this exception, including every diagnostic collected before validation was aborted.