##### Coverage Report - org.apache.turbine.services.InstantiationException

Classes in this File | Line Coverage | Branch Coverage | Complexity
InstantiationException |
50% | 2/4
N/A | N/A
| 1.0;1

1 |  |
     package org.apache.turbine.services;
2 |  |
3 |  |
4 |  |
     /*
5 |  |
      * Licensed to the Apache Software Foundation (ASF) under one
6 |  |
      * or more contributor license agreements.  See the NOTICE file
7 |  |
      * distributed with this work for additional information
8 |  |
      * regarding copyright ownership.  The ASF licenses this file
9 |  |
      * to you under the Apache License, Version 2.0 (the
10 |  |
      * "License"); you may not use this file except in compliance
11 |  |
      * with the License.  You may obtain a copy of the License at
12 |  |
      *
13 |  |
      *   http://www.apache.org/licenses/LICENSE-2.0
14 |  |
      *
15 |  |
      * Unless required by applicable law or agreed to in writing,
16 |  |
      * software distributed under the License is distributed on an
17 |  |
      * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 |  |
      * KIND, either express or implied.  See the License for the
19 |  |
      * specific language governing permissions and limitations
20 |  |
      * under the License.
21 |  |
      */
22 |  |
23 |  |
24 |  |
     import org.apache.turbine.util.TurbineRuntimeException;
25 |  |
26 |  |
     /**
27 |  |
      * Thrown by <code>InitableBroker</code> and
28 |  |
      * <code>ServiceBroker</code> classes to indicate problems with
29 |  |
      * instatiation of requested objects.
30 |  |
      *
31 |  |
      * Make sure you don't confuse this exception with the java.lang.InstantiationException.
32 |  |
      *
33 |  |
      * @author <a href="mailto:burton@apache.org">Kevin Burton</a>
34 |  |
      * @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>
35 |  |
      * @version $Id: InstantiationException.java 1066945 2011-02-03 20:27:59Z ludwig $
36 |  |
      * @see org.apache.turbine.services.Initable
37 |  |
      */
38 |  |
     public class InstantiationException extends TurbineRuntimeException
39 |  |
     {
40 |  |
         /**
41 |  |
          * Serial version.
42 |  |
          */
43 |  |
         private static final long serialVersionUID = -6657313997260441099L;
44 |  |
45 |  |
         /**
46 |  |
          * Construct an InstantiationException with specified detail
47 |  |
          * message.
48 |  |
          *
49 |  |
          * @param msg The detail message.
50 |  |
          */
51 |  |
         public InstantiationException(String msg)
52 |  |
         {
53 | 34 |
             super(msg);
54 | 34 |
         }
55 |  |
56 |  |
         /**
57 |  |
          * Construct an InstantiatioException with specified detail message
58 |  |
          * and nested Throwable.
59 |  |
          *
60 |  |
          * @param msg The detail message.
61 |  |
          * @param t the root exception.
62 |  |
          */
63 |  |
         public InstantiationException(String msg, Throwable t)
64 |  |
         {
65 | 0 |
             super(msg, t);
66 | 0 |
         }
67 |  |
     }