org.apache.cayenne.validation

## Class ValidationException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.apache.cayenne.CayenneRuntimeException
        - - org.apache.cayenne.validation.ValidationException

- All Implemented Interfaces:
    Serializable

      public class ValidationException
      extends CayenneRuntimeException

  An exception thrown on unsuccessful validation.
  Since:
    1.1
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValidationException(String messageFormat, Object... messageArgs)`
    `ValidationException(String messageFormat, ValidationResult result, Object... messageArgs)`
    `ValidationException(ValidationResult result)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValidationResult` | `getValidationResult()`
    `String` | `toString()`

    - ### Methods inherited from class org.apache.cayenne.CayenneRuntimeException

      `getMessage, getUnlabeledMessage`

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

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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 messageFormat,
                                     Object... messageArgs)

    - #### ValidationException

          public ValidationException(ValidationResult result)

    - #### ValidationException

          public ValidationException(String messageFormat,
                                     ValidationResult result,
                                     Object... messageArgs)

  - ### Method Detail

    - #### getValidationResult

          public ValidationResult getValidationResult()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Throwable`

Copyright © 2001–2018 Apache Cayenne. All rights reserved.