-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #538 from dbmdz/file-refactor
commons-file: Add new FileSystemResourceIOException
- Loading branch information
Showing
4 changed files
with
82 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...c/main/java/de/digitalcollections/commons/file/backend/FileSystemResourceIOException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package de.digitalcollections.commons.file.backend; | ||
|
||
import de.digitalcollections.model.exception.ResourceIOException; | ||
|
||
/** | ||
* A subtype of ResourceIOException to indicate that an honest-to-god actual IOException (as in | ||
* harddisk broken, network share unavailable or a cosmic ray hit the CPU in just the right way for | ||
* the syscall to fail.) | ||
*/ | ||
public class FileSystemResourceIOException extends ResourceIOException { | ||
|
||
public FileSystemResourceIOException(Throwable ex) { | ||
super(ex); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters