View Javadoc

1   /*******************************************************************************
2    * Copyright (c) 2007, 2014 Massimiliano Ziccardi
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  package it.jnrpe.net;
17  
18  /**
19   * This exception is thrown if the response CRC or the request CRC ccould not be
20   * verified.
21   *
22   * @author Massimiliano Ziccardi
23   *
24   */
25  public class BadCRCException extends Exception {
26      /**
27       *
28       */
29      private static final long serialVersionUID = -4870060988392897195L;
30  
31      /**
32       * Initialize the exception with an emtpy error message.
33       */
34      public BadCRCException() {
35          super();
36      }
37  
38      /**
39       * Initialize the exception with the given error message and the give root
40       * cause.
41       *
42       * @param message
43       *            The error message
44       * @param cause
45       *            The root exception
46       */
47      public BadCRCException(final String message, final Throwable cause) {
48          super(message, cause);
49      }
50  
51      /**
52       * Initialize the exception with the given error message.
53       *
54       * @param message
55       *            The error message
56       */
57      public BadCRCException(final String message) {
58          super(message);
59      }
60  
61      /**
62       * Initialize the exception with the given root cause.
63       *
64       * @param cause
65       *            The root cause
66       */
67      public BadCRCException(final Throwable cause) {
68          super(cause);
69      }
70  
71  }