Class WriterErrorMessageHelper
Object
WriterErrorMessageHelper
Helps create similar error messages among
StackWriter
s.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends StackWriter>
ImageIOExceptiongeneralWriteException
(Class<T> writerClass, Path path, Exception cause) Creates aImageIOException
with an error message that image-writing failed.
-
Method Details
-
generalWriteException
public static <T extends StackWriter> ImageIOException generalWriteException(Class<T> writerClass, Path path, Exception cause) Creates aImageIOException
with an error message that image-writing failed.- Type Parameters:
T
- the writer in which the writing failed.- Parameters:
writerClass
- class corresponding to<T>
.path
- the path that the image was been written to, when failure occurred.cause
- the cause of failure.- Returns:
- an exception that can be thrown describing the failure.
-