io.vertx.ext.unit.report

## Interface Failure

-     public interface 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
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Throwable` | `cause()`
    `boolean` | `isError()`
    `String` | `message()`
    `String` | `stackTrace()`

- - ### Method Detail

    - #### isError

          boolean isError()

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

    - #### message

          String message()

      Returns:
        the error message

    - #### stackTrace

          String stackTrace()

      Returns:
        the stack trace

    - #### cause

          Throwable cause()

      Returns:
        the underlying exception causing this failure, it may be null

Copyright © 2024 Eclipse. All rights reserved.