|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpatterntesting.exception.io.IOExceptionHelper
public final class IOExceptionHelper
| Method Summary | |
|---|---|
static FileNotFoundException |
getBetterFileNotFoundException(FileNotFoundException ioe,
File file)
If the cause of a FileNotFoundException is a missing directory you will get a DirNotFoundException as return value. |
static IOException |
getBetterIOException(IOException ioe,
File file)
In contrast to the original IOException the file name will be appear alway as absolute file name. |
static IOException |
getBetterIOException(IOException ioe,
String filename)
|
static DirNotFoundException |
getDirNotFoundException(IOException ioe,
File dir)
At the moment this is only a simple constructor call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IOException getBetterIOException(IOException ioe,
File file)
ioe - the original IOExceptionfile - the file
public static IOException getBetterIOException(IOException ioe,
String filename)
ioe - the original IOExceptionfilename - which caused the IOExeption
public static FileNotFoundException getBetterFileNotFoundException(FileNotFoundException ioe,
File file)
ioe - the original FileNotFoundExceptionfile - the cause of the FileNotFoundException
public static DirNotFoundException getDirNotFoundException(IOException ioe,
File dir)
ioe - the IOException with the causedir - the directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||