Package groovy.junit6.plugin

# Class ExpectedToFailContext

java.lang.Object
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
  Description
  `ExpectedToFailContext(Throwable thrown)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Throwable`
  `getCause()`
  `Throwable`
  `getEx()`
  `String`
  `getMessage()`

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

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

- ## Constructor Details

  - ### ExpectedToFailContext

    public ExpectedToFailContext(Throwable thrown)

- ## Method Details

  - ### getEx

    public Throwable getEx()

  - ### getMessage

    public String getMessage()

  - ### getCause

    public Throwable getCause()