From 33df2abc95b076736c74e292e324c07be17e2345 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 4 Aug 2013 10:34:20 -0400 Subject: [PATCH] added new exception Former-commit-id: 04cfddecea7d3e6755d0eeade4344e01881128e0 --- .../utils/ExtractionException.java | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/ExtractionException.java diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/ExtractionException.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/ExtractionException.java new file mode 100644 index 000000000..ed0f51a17 --- /dev/null +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/ExtractionException.java @@ -0,0 +1,69 @@ +/* + * This file is part of dependency-check-core. + * + * Dependency-check-core is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) any + * later version. + * + * Dependency-check-core is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * dependency-check-core. If not, see http://www.gnu.org/licenses/. + * + * Copyright (c) 2013 Jeremy Long. All Rights Reserved. + */ +package org.owasp.dependencycheck.utils; + +import java.io.IOException; + +/** + * An exception used when a file is unable to be un-zipped. + * + * @author Jeremy Long (jeremy.long@owasp.org) + */ +public class ExtractionException extends IOException { + + /** + * The serial version UID. + */ + private static final long serialVersionUID = 1L; + + /** + * Creates a new ExtractionException. + */ + public ExtractionException() { + super(); + } + + /** + * Creates a new ExtractionException. + * + * @param msg a message for the exception. + */ + public ExtractionException(String msg) { + super(msg); + } + + /** + * Creates a new ExtractionException. + * + * @param ex the cause of the download failure. + */ + public ExtractionException(Throwable ex) { + super(ex); + } + + /** + * Creates a new ExtractionException. + * + * @param msg a message for the exception. + * @param ex the cause of the download failure. + */ + public ExtractionException(String msg, Throwable ex) { + super(msg, ex); + } +}