From 6c3025c48717d7c588de3e507239f3209475fd45 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 11 Jan 2014 12:37:56 -0500 Subject: [PATCH] initial version of exception Former-commit-id: 4e728dce235f4cf86534db2c1992916c0b889328 --- .../data/nvdcve/DriverLoadException.java | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/DriverLoadException.java diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/DriverLoadException.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/DriverLoadException.java new file mode 100644 index 000000000..0cd108edf --- /dev/null +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/DriverLoadException.java @@ -0,0 +1,60 @@ +/* + * 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) 2014 Jeremy Long. All Rights Reserved. + */ +package org.owasp.dependencycheck.data.nvdcve; + +/** + * An exception thrown the database driver is unable to be loaded. + * + * @author Jeremy Long (jeremy.long@owasp.org) + */ +public class DriverLoadException extends Exception { + + /** + * the serial version uid. + */ + private static final long serialVersionUID = 1L; + + /** + * Creates an DriverLoadException. + * + * @param msg the exception message + */ + public DriverLoadException(String msg) { + super(msg); + } + + /** + * Creates an DriverLoadException. + * + * @param ex the cause of the exception + */ + public DriverLoadException(Throwable ex) { + super(ex); + } + + /** + * Creates an DriverLoadException. + * + * @param msg the exception message + * @param ex the cause of the exception + */ + public DriverLoadException(String msg, Throwable ex) { + super(msg, ex); + } +}