io.vertx.ext.web.api.validation

## Class ValidationException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - io.vertx.core.VertxException
        - - io.vertx.ext.web.api.validation.ValidationException

- All Implemented Interfaces:
    Serializable

      public class ValidationException
      extends VertxException

  This is the main class for every Validation flow related errors
  Author:
    Francesco Guardiani @slinkydeveloper
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ValidationException.ErrorType` All errors type.
    `static class` | `ValidationException.ValidationExceptionFactory`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValidationException(String message)`
    `ValidationException(String message, ValidationException.ErrorType error)`
    `ValidationException(String message, ValidationException.ErrorType error, Throwable cause)`
    `ValidationException(ValidationException.ErrorType error)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `parameterName()`
    `void` | `setParameterName(String parameterName)`
    `void` | `setValidationRule(ParameterValidationRule validationRule)`
    `void` | `setValue(String value)`
    `String` | `toString()`
    `ValidationException.ErrorType` | `type()`
    `ParameterValidationRule` | `validationRule()`
    `String` | `value()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ValidationException

          public ValidationException(String message,
                                     ValidationException.ErrorType error,
                                     Throwable cause)

    - #### ValidationException

          public ValidationException(String message,
                                     ValidationException.ErrorType error)

    - #### ValidationException

          public ValidationException(ValidationException.ErrorType error)

    - #### ValidationException

          public ValidationException(String message)

  - ### Method Detail

    - #### parameterName

          public String parameterName()

    - #### validationRule

          public ParameterValidationRule validationRule()

    - #### value

          public String value()

    - #### type

          public ValidationException.ErrorType type()

    - #### setParameterName

          public void setParameterName(String parameterName)

    - #### setValidationRule

          public void setValidationRule(ParameterValidationRule validationRule)

    - #### setValue

          public void setValue(String value)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Throwable`

Copyright © 2018 Eclipse. All rights reserved.