Class FileBodyException

All Implemented Interfaces:
Serializable

public class FileBodyException extends RuntimeException
Thrown when the file referenced by a FileBody cannot be read while materialising a response (or request-matching) body. Carries the offending file path for server-side logging; callers in the response pipeline turn it into a clean, logged 500 whose body does NOT leak the path.
Author:
jamesdbloom
See Also:
  • Constructor Details

    • FileBodyException

      public FileBodyException(String filePath, Throwable cause)
  • Method Details

    • getFilePath

      public String getFilePath()