Coverage Report - org.owasp.dependencycheck.data.nuget.NuspecParseException
 
Classes in this File Line Coverage Branch Coverage Complexity
NuspecParseException
66%
4/6
N/A
1
 
 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  
      * The serialVersionUID
 28  
      */
 29  
     private static final long serialVersionUID = 1;
 30  
 
 31  
     /**
 32  
      * Constructs a new exception with <code>null</code> as its detail message.
 33  
      *
 34  
      * The cause is not initialized, and may subsequently be initialized by a call
 35  
      * to {@link java.lang.Throwable#initCause(java.lang.Throwable)}.
 36  
      */
 37  
     public NuspecParseException() {
 38  0
         super();
 39  0
     }
 40  
 
 41  
     /**
 42  
      * Constructs a new exception with the specified detail message. The cause is
 43  
      * not initialized, and may subsequently be initialized by a call to
 44  
      * {@link java.lang.Throwable#initCause(java.lang.Throwable).
 45  
      *
 46  
      * @param message the detail message. The detail message is saved for later retrieval
 47  
      * by the {@link java.lang.Throwable#getMessage()} method.
 48  
      */
 49  
     public NuspecParseException(String message) {
 50  1
         super(message);
 51  1
     }
 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 (whcih 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
 62  
      * {@link java.lang.Throwable#getCause()} method). (A <code>null</code> value is permitted,
 63  
      * and indicates that the cause is nonexistent or unknown).
 64  
      */
 65  
     public NuspecParseException(String message, Throwable cause) {
 66  2
         super(message, cause);
 67  2
     }
 68  
 }