View Javadoc

1   /*
2    *  Copyright 2004 David C. Brown
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package net.sf.ashkay;
17  
18  /***
19   * CreationExceptions represent an error in the creation of an object in an
20   * ObjectFactory.
21   *
22   * @author <a href="mailto:bangroot@users.sf.net">Dave Brown</a>
23   */
24  public class CreationException extends Exception
25  {
26  	/***
27  	 * Constructs a default CreationException without a message or source
28  	 */
29  	public CreationException()
30  	{
31  		super();
32  	}
33  
34  	/***
35  	 * Constructs a CreationException with a message but no source
36  	 * @param msg - the message
37  	 */
38  	public CreationException(String msg)
39  	{
40  		super(msg);
41  	}
42  
43  	/***
44  	 * Constructs a CreationException with a source but no message
45  	 * @param p_source - the source exception
46  	 */
47  	public CreationException(Throwable p_source)
48  	{
49  		super(p_source);
50  	}
51  
52  	/***
53  	 * Contructs a CreationException with a message and source
54  	 * @param msg - the message
55  	 * @param p_source - the source exception
56  	 */
57  	public CreationException(String msg, Throwable p_source)
58  	{
59  		super(msg, p_source);
60  	}
61  
62  }