saker.build Documentation TaskDoc JavaDoc Packages
public class PartiallyDeletedChildrenException extends IOException
Exception for signalling that a delete request of multiple files succeded only partially.

When a file deletion request is issued for multiple files, it can succeed partially in which case some files are deleted, and some may be left unchanged. In this case an exception of this kind is thrown which holds information about the successfully deleted children, and the file that caused the operation to abort.

Constructors
public
PartiallyDeletedChildrenException(IOException cause, SakerPath failedChildPath, Set<String> deletedChildren)
Creates a new exception holding the data related to the delete operation failure.
Methods
public IOException
Gets the cause of the delete operation failure associated with the failed child path.
public Set<String>
Gets the set of child file names which were successfully deleted.
public SakerPath
Gets the absolute path of the file which failed to be deleted.
public PartiallyDeletedChildrenException(IOException cause, SakerPath failedChildPath, Set<String> deletedChildren)
Creates a new exception holding the data related to the delete operation failure.
causeThe exception that caused the operation to fail.
failedChildPathThe path of the delete request which failed.
deletedChildrenThe names of the successfully deleted children.
Gets the cause of the delete operation failure associated with the failed child path.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.(The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

the cause of this throwable or null if the cause is nonexistent or unknown.
Gets the set of child file names which were successfully deleted.

The child names are single path names which are considered to be in the directory of the associated deletion request.

The child file names.
Gets the absolute path of the file which failed to be deleted.
The file path.