Examples of NukeException


Examples of cu.ftpd.modules.nukehandler.NukeException

                logNukeToEventLog(new Nuke(releaseName, section, nuker, totalBytesNuked, multiplier, reason, nukees));
                log("NUKE;" + releaseName + ';' + section + ';' + nuker + ';' + totalBytesNuked + ';' + multiplier + ';' + reason + ';' + nukees + ';' + realPwd + ';' + System.currentTimeMillis());
                return true;
            } else {
                Logging.getErrorLog().reportError("Failed to nuke directory: directory could not be renamed: " + originalDir.getAbsolutePath());
                throw new NukeException("Failed to nuke directory: directory could not be renamed: " + originalDir.getName()); // only disclose the name here, lest we reveal any information about the underlying system
            }
        } else {
            throw new FileNotFoundException("File not found: " + releaseName);
        }
    }
View Full Code Here

Examples of cu.ftpd.modules.nukehandler.NukeException

                        logUnnukeToEventLog(releaseName, section, unnuker, reason);
                        log("UNNUKE;" + releaseName + ';' + section + ';' + unnuker + ';' + reason + ';' + System.currentTimeMillis());
                        return true;
                    } else {
                        Logging.getErrorLog().reportError("Failed to unnuke directory: directory could not be renamed: " + nukedDir.getAbsolutePath());
                        throw new NukeException("Failed to unnuke directory: directory could not be renamed: " + nukedDir.getName());
                    }
                } else {
                    System.err.println("Malformed nuke line: " + lastNuke);
                    throw new NukeException("Malformed nuke line");
                }
            } else {
                throw new NukeException("Release not found in nukelog.");
            }
        } catch (IOException e) {
            Logging.getErrorLog().reportCritical("Could not read nukelog: " + e.getMessage());
            throw e;
        } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.