| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SuppressionParseException |
|
| 1.0;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) 2013 Jeremy Long. All Rights Reserved. | |
| 17 | */ | |
| 18 | package org.owasp.dependencycheck.suppression; | |
| 19 | ||
| 20 | import java.io.IOException; | |
| 21 | ||
| 22 | /** | |
| 23 | * An exception used when parsing a suppression rule file fails. | |
| 24 | * | |
| 25 | * @author Jeremy Long | |
| 26 | */ | |
| 27 | public class SuppressionParseException extends IOException { | |
| 28 | ||
| 29 | /** | |
| 30 | * Creates a new SuppressionParseException. | |
| 31 | */ | |
| 32 | public SuppressionParseException() { | |
| 33 | 0 | super(); |
| 34 | 0 | } |
| 35 | ||
| 36 | /** | |
| 37 | * Creates a new SuppressionParseException. | |
| 38 | * | |
| 39 | * @param msg a message for the exception. | |
| 40 | */ | |
| 41 | public SuppressionParseException(String msg) { | |
| 42 | 0 | super(msg); |
| 43 | 0 | } |
| 44 | ||
| 45 | /** | |
| 46 | * Creates a new SuppressionParseException. | |
| 47 | * | |
| 48 | * @param ex the cause of the parse exception | |
| 49 | */ | |
| 50 | public SuppressionParseException(Throwable ex) { | |
| 51 | 1 | super(ex); |
| 52 | 1 | } |
| 53 | ||
| 54 | /** | |
| 55 | * Creates a new SuppressionParseException. | |
| 56 | * | |
| 57 | * @param msg a message for the exception. | |
| 58 | * @param ex the cause of the parse exception | |
| 59 | */ | |
| 60 | public SuppressionParseException(String msg, Throwable ex) { | |
| 61 | 1 | super(msg, ex); |
| 62 | 1 | } |
| 63 | } |