View Javadoc
1   package org.fax4j;
2   
3   /**
4    * A general exception class used by the fax4j framework.
5    * 
6    * @author Sagie Gur-Ari
7    * @version 1.03
8    * @since 0.1
9    */
10  public class FaxException extends RuntimeException {
11      /** Default serialization UID */
12      private static final long serialVersionUID = 1L;
13  
14      /**
15       * This is the default constructor.
16       * 
17       * @param message
18       *            The error message
19       */
20      public FaxException(String message) {
21          super(message);
22      }
23  
24      /**
25       * This is the default constructor.
26       * 
27       * @param message
28       *            The error message
29       * @param cause
30       *            The root cause of the exception
31       */
32      public FaxException(String message, Throwable cause) {
33          super(message, cause);
34      }
35  }