View Javadoc

1   
2   package javax.agent;
3   
4   /***
5    * The JasException is the base of exceptions
6    * defined in the JAS(Java Agent Services) API.
7    */
8   
9   public class JasException extends Exception {
10      private Exception exp;
11  
12      public JasException() {
13  	super();
14      }
15  
16      public JasException(String msg) {
17  	super(msg);
18      }
19  
20      /***
21       * Sets the original exception.
22       */
23      public void setException(Exception exp) {
24  	this.exp = exp;
25      }
26  
27      /***
28       * Returns the exception that caused this exception
29       * if it is stored, otherwise null.
30       */
31      public Exception getException() {
32  	return exp;
33      }
34  }