Class ValidationException

org.elasticsearch.common.ValidationException
All Implemented Interfaces:
Direct Known Subclasses:
ActionRequestValidationException, QueryValidationException

public class ValidationException extends
Encapsulates an accumulation of validation errors
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     error)
    Add a new validation error to the accumulating validation errors
    <> errors)
    Add a sequence of validation errors to the accumulating validation errors
     
    <>
    Returns the validation errors accumulated

    Methods inherited from class java.lang.

    , , , , , , , , , , ,

    Methods inherited from class java.lang.

    , , , , , , , , ,
  • Constructor Details

    • ValidationException

      public ValidationException()
    • ValidationException

      public ValidationException( cause)
  • Method Details

    • addValidationError

      public final  error)
      Add a new validation error to the accumulating validation errors
      Parameters:
      error - the error to add
    • addValidationErrors

      public final <> errors)
      Add a sequence of validation errors to the accumulating validation errors
      Parameters:
      errors - the errors to add
    • validationErrors

      public final <> validationErrors()
      Returns the validation errors accumulated
    • getMessage

      public final  getMessage()
      Overrides:
       in class