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

org.xadisk.filesystem.exceptions.FileNotExistsException Maven / Gradle / Ivy

The newest version!
/*
Copyright © 2010-2011, Nitin Verma (project owner for XADisk https://xadisk.dev.java.net/). All rights reserved.

This source code is being made available to the public under the terms specified in the license
"Eclipse Public License 1.0" located at http://www.opensource.org/licenses/eclipse-1.0.php.
*/


package org.xadisk.filesystem.exceptions;

import org.xadisk.bridge.proxies.interfaces.XADiskBasicIOOperations;

/**
 * This exception is thrown by those I/O methods in {@link XADiskBasicIOOperations}
 * which are expecting a file/directory to exist, but didn't find it.
 *
 * 

Note that the existence of a file/directory is derived from the perspective of the current * transaction. So, there may be a file/directory on disk, but which was deleted (virtually) * by the current transaction. Such a file/directory is non-existing for the current transaction. * Similarly, a file/directory which is not on disk, but which was created by the current transaction, * is existing from the perspective of the current transaction. * * @since 1.0 */ public class FileNotExistsException extends XAApplicationException { private static final long serialVersionUID = 1L; private String path; public FileNotExistsException(String path) { this.path = path; } @Override public String getMessage() { return "The file/directory [" +path+ "] is expected by the i/o operation, but does not exist."; } /** * Returns the path of the file/directory which was expected by the i/o operation, but * does not exist. *

See the class description for definition of existence of * a file/directory. * @return the path of the file/directory. */ public String getPath() { return path; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy