View Javadoc

1   package pl.caltha.forms;
2   
3   /***
4    * Thrown on any problems in form processing.
5    *
6    * @author <a href="mailto:zwierzem@ngo.pl">Damian Gajda</a>
7    * @version $Id: FormsException.java,v 1.2 2005/02/10 17:46:48 rafal Exp $
8    */
9   public class FormsException extends java.lang.Exception
10  {
11      public FormsException()
12      {
13          // default constructor
14      }
15      
16      public FormsException(String msg)
17      {
18          super(msg);
19      }
20  
21      public FormsException(String msg, Exception e)
22      {
23          super(msg);
24      	this.exception = e;
25      }
26  
27      /***
28       * Return the embedded exception, if any.
29       *
30       * @return The embedded exception, or null if there is none.
31       */
32      public Exception getException ()
33      {
34  	return exception;
35      }
36      
37      /***
38       * @serial The embedded exception if tunnelling, or null.
39       */    
40      private Exception exception = null;
41  }