KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > server > support > ConstructorTest2


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.server.support;
9
10 /**
11  * Support class which throws an unchecked exception from its constructor.
12  *
13  * @author <a HREF="mailto:juha@jboss.org">Juha Lindfors</a>.
14  * @version $Revision: 1.1 $
15  *
16  */

17 public class ConstructorTest2
18 {
19    // Constructors --------------------------------------------------
20
public ConstructorTest2()
21    {
22       throw new ExceptionOnTheRun();
23    }
24    
25 }
26       
27
28
29
30
Popular Tags