View Javadoc

1   package expectj;
2   
3   /***
4    * This class extends the Exception class and encapsulates other exceptions.
5    *
6    * @author	Sachin Shekar Shetty
7    */
8   public class ExpectJException extends Exception {
9       /***
10       * Create a new exception with an explanatory message.
11       * @param message An explanation of what went wrong.
12       */
13      ExpectJException(String message) {
14          super(message);
15      }
16  
17      /***
18       * Create a new exception with an explanatory message and a reference to an exception
19       * that made us throw this one.
20       * @param message An explanation of what went wrong.
21       * @param cause Another exception that is the reason to throw this one.
22       */
23      ExpectJException(String message, Throwable cause) {
24          super(message, cause);
25      }
26  }