src/main/java/com/groupdocs/ui/exception/DiskAccessException.java
package com.groupdocs.ui.exception;
import java.io.File;
/**
* Wrapper for disk access exceptions
*/
public class DiskAccessException extends RuntimeException {
public static String MESSAGE = "Can not %s. Path is %s";
public DiskAccessException(String message, File file) {
this(message, file.getAbsolutePath());
}
public DiskAccessException(String message, String path) {
super(String.format(MESSAGE, message, path));
}
public DiskAccessException(String message, Throwable cause) {
super(message, cause);
}
}