groupdocs-total/GroupDocs.Total-for-Java-Spring

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package com.groupdocs.ui.viewer.exception;

import com.groupdocs.ui.exception.TotalGroupDocsException;

import java.io.File;
import java.nio.file.Path;

/**
 * Wrapper for disk access exceptions
 */
public class DiskAccessException extends TotalGroupDocsException {
    public static String MESSAGE = "Can not %s. Path is %s";

    public DiskAccessException(String message, Path file) {
        this(message, file.toAbsolutePath().toString());
    }

    public DiskAccessException(String message, String path) {
        super(String.format(MESSAGE, message, path));
    }

    public DiskAccessException(String message, Throwable cause) {
        super(message, cause);
    }
}