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