Package: groovy.junit6.plugin

## [Java] Class ExpectedToFailContext

- groovy.junit6.plugin.ExpectedToFailContext

-     public class ExpectedToFailContext
      extends Object

  Delegate for closure predicates supplied to ExpectedToFail, exposing the thrown exception under three convenient names: `ex` (the Throwable itself), `message` (its message), and `cause` (its cause, possibly `null`).

  Since:
    6.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ExpectedToFailContext(Throwable thrown)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Throwable` | `getCause()`
    `` | `public Throwable` | `getEx()`
    `` | `public String` | `getMessage()`

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public ExpectedToFailContext(Throwable thrown)

  - ### Method Detail

    - #### public Throwable getCause()

    - #### public Throwable getEx()

    - #### public String getMessage()