Class AtomicConfigWriter.RestoreFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.ultikits.ultitools.config.document.AtomicConfigWriter.RestoreFailedException
All Implemented Interfaces:
Serializable
Enclosing class:
AtomicConfigWriter

public static final class AtomicConfigWriter.RestoreFailedException extends IOException
Thrown when an in-place write failed after the target was opened and putting the target back from its framework backup failed too (#622): the target may hold part of the new content, and the backup holding its previous content is kept. The message names the target and the backup, never content; the in-place write's own failure is the cause.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • target

      private final transient Path target
    • backup

      private final transient Path backup
  • Constructor Details

    • RestoreFailedException

      RestoreFailedException(Path target, Path backup, Throwable cause)
  • Method Details

    • target

      public Path target()
      The file that may hold part of the new content.
      Returns:
      the target (a symbolic link resolved)
    • backup

      public Path backup()
      The framework backup holding the target's previous content, kept beside it.
      Returns:
      the backup