From f868c3d17236adcf8a6bc4f529331ac0dc4330b8 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 16 Nov 2013 09:17:13 -0500 Subject: [PATCH] Updated error reporting if data does not exist Former-commit-id: 99047450cd010ba92e14d2dd70701b3fa38f60f1 --- .../dependencycheck/data/NoDataException.java | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 dependency-check-core/src/main/java/org/owasp/dependencycheck/data/NoDataException.java diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/NoDataException.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/NoDataException.java new file mode 100644 index 000000000..8fa39c130 --- /dev/null +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/NoDataException.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.data; + +import java.io.IOException; + +/** + * An exception used when the data needed does not exist to perform analysis. + * + * @author Jeremy Long (jeremy.long@owasp.org) + */ +public class NoDataException extends IOException { + + /** + * The serial version uid. + */ + private static final long serialVersionUID = 1L; + + /** + * Creates a new NoDataException. + */ + public NoDataException() { + super(); + } + + /** + * Creates a new NoDataException. + * + * @param msg a message for the exception. + */ + public NoDataException(String msg) { + super(msg); + } + + /** + * Creates a new NoDataException. + * + * @param ex the cause of the exception. + */ + public NoDataException(Throwable ex) { + super(ex); + } + + /** + * Creates a new NoDataException. + * + * @param msg a message for the exception. + * @param ex the cause of the exception. + */ + public NoDataException(String msg, Throwable ex) { + super(msg, ex); + } +}