From dd472c1322d6ff1d9d37989bfe33abb44834c1ed Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 17 Nov 2013 15:20:01 -0500 Subject: [PATCH] new exception type added Former-commit-id: ac3650af279b14e5a32add2f6894ad60177fd243 --- .../data/cpe/IndexException.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dependency-check-core/src/main/java/org/owasp/dependencycheck/data/cpe/IndexException.java diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/cpe/IndexException.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/cpe/IndexException.java new file mode 100644 index 000000000..b283eb46b --- /dev/null +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/cpe/IndexException.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) 2012 Jeremy Long. All Rights Reserved. + */ +package org.owasp.dependencycheck.data.cpe; + +/** + * An exception thrown when the there is an issue using the in-memory CPE Index. + * + * @author Jeremy Long (jeremy.long@owasp.org) + */ +public class IndexException extends Exception { + + /** + * The serial version UID for serialization. + */ + private static final long serialVersionUID = 1L; + + /** + * Creates a new IndexException. + */ + public IndexException() { + super(); + } + + /** + * Creates a new IndexException. + * + * @param msg a message for the exception. + */ + public IndexException(String msg) { + super(msg); + } + + /** + * Creates a new IndexException. + * + * @param ex the cause of the failure. + */ + public IndexException(Throwable ex) { + super(ex); + } + + /** + * Creates a new IndexException. + * + * @param msg a message for the exception. + * @param ex the cause of the failure. + */ + public IndexException(String msg, Throwable ex) { + super(msg, ex); + } +}