All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.catools.common.io.CFileOperationException Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package org.catools.common.io;

import org.catools.common.exception.CRuntimeException;

/**
 * Signals that an attempt to perform operation against the file denoted by a specified pathname has failed.
 */
public class CFileOperationException extends CRuntimeException {

    public CFileOperationException(String filename, String message) {
        super(String.format("File %s not found. message: %s", filename, message));
    }

    public CFileOperationException(CFile file, String message) {
        this(file.getPath(), message);
    }

    public CFileOperationException(CFile file, String message, Throwable cause) {
        super(String.format("File %s not found. message: %s", file.getPath(), message), cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy