1 /*
2 * This file is part of dependency-check-core.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * Copyright (c) 2012 Jeremy Long. All Rights Reserved.
17 */
18 package org.owasp.dependencycheck.data.update.exception;
19
20 import javax.annotation.concurrent.ThreadSafe;
21
22 /**
23 * An exception used when data corruption is detected on an NVD CVE Datastream file.
24 *
25 * @author Hans Aikema
26 */
27 @ThreadSafe
28 public class CorruptedDatastreamException extends Exception {
29
30 /**
31 * Create a new CorruptedDatastreamException.
32 */
33 public CorruptedDatastreamException() {
34 }
35
36 /**
37 * Create a new CorruptedDatastreamException with the specified detail message.
38 *
39 * @param message
40 * a message for the exception.
41 */
42 public CorruptedDatastreamException(final String message) {
43 super(message);
44 }
45
46 /**
47 * Create a new CorruptedDatastreamException with the specified cause.
48 *
49 * @param cause
50 * the cause for the exception.
51 */
52 public CorruptedDatastreamException(final Throwable cause) {
53 super(cause);
54 }
55
56 /**
57 * Create a new CorruptedDatastreamException with the specified detail message and cause.
58 *
59 * @param message
60 * a message for the exception.
61 * @param cause
62 * the cause for the exception.
63 */
64 public CorruptedDatastreamException(final String message, final Throwable cause) {
65 super(message, cause);
66 }
67
68 }