From ffeac233c23f114dfe5635c0b87fd93f3d5885ec Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 2 Nov 2013 06:49:17 -0400 Subject: [PATCH] added new exception type Former-commit-id: 5b5154cba53bbaa5a57ae9ee1aa4e35fb8243dc1 --- .../analyzer/ArchiveExtractionException.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveExtractionException.java diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveExtractionException.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveExtractionException.java new file mode 100644 index 000000000..377545823 --- /dev/null +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveExtractionException.java @@ -0,0 +1,67 @@ +/* + * 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.analyzer; + +/** + * An exception thrown when the analysis of a dependency fails. + * + * @author Jeremy Long (jeremy.long@owasp.org) + */ +public class ArchiveExtractionException extends Exception { + + /** + * The serial version UID for serialization. + */ + private static final long serialVersionUID = 1L; + + /** + * Creates a new AnalysisException. + */ + public ArchiveExtractionException() { + super(); + } + + /** + * Creates a new AnalysisException. + * + * @param msg a message for the exception. + */ + public ArchiveExtractionException(String msg) { + super(msg); + } + + /** + * Creates a new AnalysisException. + * + * @param ex the cause of the failure. + */ + public ArchiveExtractionException(Throwable ex) { + super(ex); + } + + /** + * Creates a new DownloadFailedException. + * + * @param msg a message for the exception. + * @param ex the cause of the failure. + */ + public ArchiveExtractionException(String msg, Throwable ex) { + super(msg, ex); + } +}