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) 2018 Paul Irwin. All Rights Reserved.
17 */
18 package org.owasp.dependencycheck.data.nuget;
19
20 import javax.annotation.concurrent.ThreadSafe;
21
22 /**
23 * Exception during the parsing of a MSBuild Project file.
24 *
25 * @author paulirwin
26 */
27 @ThreadSafe
28 public class MSBuildProjectParseException extends Exception {
29
30 /**
31 * The serial version UID for serialization.
32 */
33 private static final long serialVersionUID = 8190311907044058000L;
34
35 /**
36 * Constructs a new exception with <code>null</code> as its detail message.
37 *
38 * The cause is not initialized, and may subsequently be initialized by a
39 * call to {@link java.lang.Throwable#initCause(java.lang.Throwable)}.
40 */
41 public MSBuildProjectParseException() {
42 super();
43 }
44
45 /**
46 * Constructs a new exception with the specified detail message. The cause
47 * is not initialized, and may subsequently be initialized by a call to
48 * {@link java.lang.Throwable#initCause(java.lang.Throwable)}.
49 *
50 * @param message the detail message. The detail message is saved for later
51 * retrieval by the {@link java.lang.Throwable#getMessage()} method.
52 */
53 public MSBuildProjectParseException(String message) {
54 super(message);
55 }
56
57 /**
58 * Constructs a new exception with the specified detail message and cause.
59 *
60 * Note that the detail message associated with <code>cause</code> is
61 * <em>not</em>
62 * automatically incorporated in this exception's detail message.
63 *
64 * @param message the detail message (which is saved for later retrieval by
65 * the {@link java.lang.Throwable#getMessage()} method.
66 * @param cause the cause (which is saved for later retrieval by the
67 * {@link java.lang.Throwable#getCause()} method). (A <code>null</code>
68 * value is permitted, and indicates that the cause is nonexistent or
69 * unknown).
70 */
71 public MSBuildProjectParseException(String message, Throwable cause) {
72 super(message, cause);
73 }
74 }