Class FilizerExceptions
java.lang.Object
io.github.monsieurdoceo.filizer.shared.exceptions.FilizerExceptions
Centralized factory for Filizer runtime exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidambiguousFileName(String name) Logs an ambiguous file lookup.fileCreationFailed(Path path, String name, Throwable cause) Creates an exception for a failed file creation.fileDeletionFailed(String name, Throwable cause) Creates an exception for a failed file deletion.fileNotFound(String name, Throwable cause) Creates an exception for a missing file.fileSaveFailed(String name, Throwable cause) Creates an exception for a failed file save.invalidFileName(String name, Throwable cause) Creates an exception for an invalid file name.invalidFilePath(Path path, String name, Throwable cause) Creates an exception for an invalid file path or name.
-
Constructor Details
-
Method Details
-
fileNotFound
Creates an exception for a missing file.- Parameters:
name- the file namecause- the original cause- Returns:
- the exception to throw
-
invalidFilePath
Creates an exception for an invalid file path or name.- Parameters:
path- the file pathname- the file namecause- the original cause- Returns:
- the exception to throw
-
invalidFileName
Creates an exception for an invalid file name.- Parameters:
name- the file namecause- the original cause- Returns:
- the exception to throw
-
fileCreationFailed
Creates an exception for a failed file creation.- Parameters:
path- the file pathname- the file namecause- the original cause- Returns:
- the exception to throw
-
fileDeletionFailed
Creates an exception for a failed file deletion.- Parameters:
name- the file namecause- the original cause- Returns:
- the exception to throw
-
fileSaveFailed
Creates an exception for a failed file save.- Parameters:
name- the file namecause- the original cause- Returns:
- the exception to throw
-
ambiguousFileName
Logs an ambiguous file lookup.- Parameters:
name- the file name
-