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.exception;
19  
20  import java.io.IOException;
21  import javax.annotation.concurrent.ThreadSafe;
22  
23  /**
24   * An exception used when using @{link DependencyCheckScanAgent} to conduct a
25   * scan and the scan fails.
26   *
27   * @author Steve Springett
28   */
29  @ThreadSafe
30  public class ScanAgentException extends IOException {
31  
32      /**
33       * The serial version UID for serialization.
34       */
35      private static final long serialVersionUID = 941993541958815367L;
36  
37      /**
38       * Creates a new ScanAgentException.
39       */
40      public ScanAgentException() {
41          super();
42      }
43  
44      /**
45       * Creates a new ScanAgentException.
46       *
47       * @param msg a message for the exception.
48       */
49      public ScanAgentException(String msg) {
50          super(msg);
51      }
52  
53      /**
54       * Creates a new ScanAgentException.
55       *
56       * @param ex the cause of the exception.
57       */
58      public ScanAgentException(Throwable ex) {
59          super(ex);
60      }
61  
62      /**
63       * Creates a new ScanAgentException.
64       *
65       * @param msg a message for the exception.
66       * @param ex the cause of the exception.
67       */
68      public ScanAgentException(String msg, Throwable ex) {
69          super(msg, ex);
70      }
71  }