Package com.ultikits.ultitools.utils
Class PluginInstallUtils.RemovalDeferredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.nio.file.FileSystemException
com.ultikits.ultitools.utils.PluginInstallUtils.RemovalDeferredException
- All Implemented Interfaces:
Serializable
- Enclosing class:
PluginInstallUtils
@Internal
public static final class PluginInstallUtils.RemovalDeferredException
extends FileSystemException
The uninstall could not delete these JARs now -- the running server holds them open, or the
folder is not writable -- and has recorded them, so the next start deletes them before any
module loads (#518). A failure type of its own, so a caller tells the operator exactly that
rather than asking them to delete a file they cannot delete while the server runs.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRemovalDeferredException(List<String> deferredFiles, String reason) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.nio.file.FileSystemException
getFile, getMessage, getOtherFileMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
deferredFiles
-
reason
-
-
Constructor Details
-
RemovalDeferredException
-
-
Method Details
-
of
public static PluginInstallUtils.RemovalDeferredException of(List<String> deferredFiles, String reason) - Parameters:
deferredFiles- the absolute paths of the JARs recorded for deletion at the next startreason- why they could not be deleted now- Returns:
- the failure
-
deferredFiles
- Returns:
- the absolute paths of the JARs recorded for deletion at the next start
-
getReason
- Overrides:
getReasonin classFileSystemException- Returns:
- why they could not be deleted now
-