Interface SnippetOutcome.HasException<T extends Throwable>

Type Parameters:
T - exception type
All Known Subinterfaces:
SnippetOutcome.ControlViolation, SnippetOutcome.ExceptionThrown
Enclosing interface:
SnippetOutcome

public static interface SnippetOutcome.HasException<T extends Throwable>
Implemented by SnippetOutcomes for which there is an associated exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the exception thrown.
  • Method Details

    • exception

      T exception()
      Get the exception thrown.
      Returns:
      exception thrown