Package: io.vertx.groovy.ext.unit.report

## [Groovy] Class Failure

- io.vertx.groovy.ext.unit.report.Failure

- A failure provides the details of a failure that happened during the execution of a test case.

  The failure can be:
  - an assertion failure: an assertion failed
  - an error failure: an expected error occured

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Failure (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Object` | `getDelegate()`
    `boolean` | `isError()` @return Returns: true if the failure is an error failure otherwise it is an assertion failure
    `String` | `message()` @return Returns: the error message
    `String` | `stackTrace()` @return Returns: the stack trace

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### Failure(Object delegate)

  - ### Method Detail

    - #### Object getDelegate()

    - #### boolean isError()

      Returns:
        true if the failure is an error failure otherwise it is an assertion failure

    - #### String message()

      Returns:
        the error message

    - #### String stackTrace()

      Returns:
        the stack trace