Package org.gradle.api.tasks

## Class VerificationException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.gradle.api.GradleException
        - - org.gradle.api.tasks.VerificationException

- All Implemented Interfaces:
    `java.io.Serializable`

      public class VerificationException
      extends GradleException

  Signals that tests have failed. This is only thrown when tests are executed and some tests have failed execution.
  Since:
    7.4
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `VerificationException​(java.lang.String message)` |
    `VerificationException​(java.lang.String message, java.lang.Throwable cause)` | Allows a cause to be specified.

  - ### Method Summary

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

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

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

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

- - ### Constructor Detail

    - #### VerificationException

          public VerificationException​(java.lang.String message)

    - #### VerificationException

          @Incubating
          public VerificationException​(java.lang.String message,
                                       java.lang.Throwable cause)

      Allows a cause to be specified.
      Since:
        8.2