View Javadoc

1   /**
2    * Project MI+
3    *
4    * Copyright (c) 2013, Syed Muhammad Humayun - smhumayun@gmail.com
5    *
6    * This project includes software developed by Syed Muhammad Humayun - smhumayun@gmail.com
7    * http://www.smhumayun.com
8    *
9    * Licensed under the Apache License, Version 2.0 (the
10   * "License"); you may not use this file except in compliance
11   * with the License. You may obtain a copy of the License at:
12   *
13   * http://www.apache.org/licenses/LICENSE-2.0
14   *
15   * Unless required by applicable law or agreed to in writing,
16   * software distributed under the License is distributed on
17   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18   * KIND, either express or implied. See the License for the
19   * specific language governing permissions and limitations
20   * under the License.
21   */
22  package com.smhumayun.mi_plus;
23  
24  /**
25   * This exception will be thrown by other classes if they found any misconfiguration or errors related to MI
26   *
27   * @author smhumayun
28   * @since 1.0
29   */
30  public class MIException extends RuntimeException {
31  
32      /**
33       * Constructs a new runtime exception with <code>null</code> as its
34       * detail message.  The cause is not initialized, and may subsequently be
35       * initialized by a call to {@link #initCause}.
36       */
37      public MIException() {
38          super();
39      }
40  
41      /**
42       * Constructs a new runtime exception with the specified detail message.
43       * The cause is not initialized, and may subsequently be initialized by a
44       * call to {@link #initCause}.
45       *
46       * @param message the detail message. The detail message is saved for
47       *                later retrieval by the {@link #getMessage()} method.
48       */
49      public MIException(String message) {
50          super(message);
51      }
52  
53      /**
54       * Constructs a new runtime exception with the specified detail message and
55       * cause.  <p>Note that the detail message associated with
56       * <code>cause</code> is <i>not</i> automatically incorporated in
57       * this runtime exception's detail message.
58       *
59       * @param message the detail message (which is saved for later retrieval
60       *                by the {@link #getMessage()} method).
61       * @param cause   the cause (which is saved for later retrieval by the
62       *                {@link #getCause()} method).  (A <tt>null</tt> value is
63       *                permitted, and indicates that the cause is nonexistent or
64       *                unknown.)
65       * @since 1.4
66       */
67      public MIException(String message, Throwable cause) {
68          super(message, cause);
69      }
70  
71      /**
72       * Constructs a new runtime exception with the specified cause and a
73       * detail message of <tt>(cause==null ? null : cause.toString())</tt>
74       * (which typically contains the class and detail message of
75       * <tt>cause</tt>).  This constructor is useful for runtime exceptions
76       * that are little more than wrappers for other throwables.
77       *
78       * @param cause the cause (which is saved for later retrieval by the
79       *              {@link #getCause()} method).  (A <tt>null</tt> value is
80       *              permitted, and indicates that the cause is nonexistent or
81       *              unknown.)
82       * @since 1.4
83       */
84      public MIException(Throwable cause) {
85          super(cause);
86      }
87  }