groupdocs-viewer/GroupDocs.Viewer-for-Java-Spring

View on GitHub
src/main/java/com/groupdocs/ui/exception/DiskAccessException.java

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
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);
    }
}