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.utils;
19
20 import java.io.IOException;
21
22 /**
23 * An exception used when the creation of an URLConnection fails.
24 *
25 * @author Jeremy Long
26 */
27 public class URLConnectionFailureException extends IOException {
28
29 /**
30 * The serial version UID.
31 */
32 private static final long serialVersionUID = 1L;
33
34 /**
35 * Creates a new URLConnectionFailureException.
36 */
37 public URLConnectionFailureException() {
38 super();
39 }
40
41 /**
42 * Creates a new URLConnectionFailureException.
43 *
44 * @param msg a message for the exception.
45 */
46 public URLConnectionFailureException(String msg) {
47 super(msg);
48 }
49
50 /**
51 * Creates a new URLConnectionFailureException.
52 *
53 * @param ex the cause of the download failure.
54 */
55 public URLConnectionFailureException(Throwable ex) {
56 super(ex);
57 }
58
59 /**
60 * Creates a new URLConnectionFailureException.
61 *
62 * @param msg a message for the exception.
63 * @param ex the cause of the download failure.
64 */
65 public URLConnectionFailureException(String msg, Throwable ex) {
66 super(msg, ex);
67 }
68 }