Interface TempDirDeletionStrategy.DeletionFailure

Enclosing interface:
TempDirDeletionStrategy

public static sealed interface TempDirDeletionStrategy.DeletionFailure
Represents a single failure that occurred while attempting to delete a path during a TempDirDeletionStrategy.delete(Path, AnnotatedElementContext, ExtensionContext) operation.
Since:
6.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the exception that caused the failure.
    Return the path that could not be deleted.
  • Method Details

    • path

      Path path()
      Return the path that could not be deleted.
      Returns:
      the path; never null
    • cause

      Exception cause()
      Return the exception that caused the failure.
      Returns:
      the cause; never null