KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > magnet > domain > ObjectCreationException


1 package org.sapia.magnet.domain;
2
3 // Import of Sapia's magnet classes
4
// --------------------------------
5
import org.sapia.magnet.MagnetException;
6
7
8 /**
9  * Error thrown by an object factory when an error occurs while
10  * creating a new instance of a class.
11  *
12  * @author Jean-Cedric Desrochers
13  *
14  * <dl>
15  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
16  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
17  * <a HREF="http://www.sapia-oss.org/license.html" target="sapia-license">license page</a> at the Sapia OSS web site</dd></dt>
18  * </dl>
19  */

20 public class ObjectCreationException extends MagnetException {
21
22   /////////////////////////////////////////////////////////////////////////////////////////
23
//////////////////////////////////// CONSTRUCTORS /////////////////////////////////////
24
/////////////////////////////////////////////////////////////////////////////////////////
25

26   /**
27    * Creates a new ObjectCreationException instance with the arguments passed in.
28    *
29    * @param aMessage The message describing the error.
30    * @param aSourceError The source error to encapsulate.
31    */

32   public ObjectCreationException(String JavaDoc aMessage, Throwable JavaDoc aSourceError) {
33     super(aMessage, aSourceError);
34   }
35
36   /**
37    * Creates a new ObjectCreationException instance with the argument passed in.
38    *
39    * @param aMessage The message describing the error.
40    */

41   public ObjectCreationException(String JavaDoc aMessage) {
42     super(aMessage);
43   }
44 }
45
Popular Tags