1 /*
2 * $Id: DefinitionsFactoryException.java 942880 2010-05-10 19:58:07Z apetrelli $
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22
23 package org.apache.tiles.definition;
24
25 import org.apache.tiles.TilesException;
26
27 /**
28 * Exception thrown when an error occurs while the impl tries to
29 * create a new instance mapper.
30 *
31 * @version $Rev: 942880 $ $Date: 2010-05-11 05:58:07 +1000 (Tue, 11 May 2010) $
32 */
33 public class DefinitionsFactoryException extends TilesException {
34 /**
35 * Constructor.
36 */
37 public DefinitionsFactoryException() {
38 super();
39 }
40
41 /**
42 * Constructor.
43 *
44 * @param message The error or warning message.
45 */
46 public DefinitionsFactoryException(String message) {
47 super(message);
48 }
49
50
51 /**
52 * Create a new <code>DefinitionsFactoryException</code> wrapping an existing exception.
53 * <p/>
54 * <p>The existing exception will be embedded in the new
55 * one and its message will become the default message for
56 * the DefinitionsFactoryException.</p>
57 *
58 * @param e The exception to be wrapped.
59 */
60 public DefinitionsFactoryException(Throwable e) {
61 super(e);
62 }
63
64
65 /**
66 * Create a new <code>DefinitionsFactoryException</code> from an existing exception.
67 * <p/>
68 * <p>The existing exception will be embedded in the new
69 * one, but the new exception will have its own message.</p>
70 *
71 * @param message The detail message.
72 * @param e The exception to be wrapped.
73 */
74 public DefinitionsFactoryException(String message, Throwable e) {
75 super(message, e);
76 }
77 }