Class PushKeyFiles.Refusal

All Implemented Interfaces:
Serializable
Enclosing class:
PushKeyFiles

public static final class PushKeyFiles.Refusal extends Exception
A key file that cannot be used: the file and the reason, never a byte of the file. The caller names the application and the reference as written, and logs it once per failure streak.
Author:
Christopher Mindus
See Also:
  • Constructor Details

    • Refusal

      public Refusal(Path file, String reason)
      Constructor.
      Parameters:
      file - The file, absolute and normalized.
      reason - The reason, e.g. "does not exist" or "grants mode 0644 to group or others".
  • Method Details

    • getFile

      public Path getFile()
      Gets the file.
      Returns:
      The file.