Class RestInPeaceValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.shri.restinpeace.exception.RestInPeaceValidationException
All Implemented Interfaces:
Serializable

public class RestInPeaceValidationException extends Exception
Checked exception thrown by ReflectiveRestClientValidator.validate(Class) when a @RestClient interface fails validation. Carries the full ValidationResult so every problem found can be reported at once instead of failing on the first one.
See Also:
  • Constructor Details

    • RestInPeaceValidationException

      public RestInPeaceValidationException(ValidationResult validationResult)
      Creates the exception for a failed validation.
      Parameters:
      validationResult - the full validation result, including every error found
  • Method Details

    • getValidationResult

      public ValidationResult getValidationResult()
      Returns the full validation result, including every error found.
      Returns:
      the validation result