001package org.apache.turbine.services; 002 003 004/* 005 * Licensed to the Apache Software Foundation (ASF) under one 006 * or more contributor license agreements. See the NOTICE file 007 * distributed with this work for additional information 008 * regarding copyright ownership. The ASF licenses this file 009 * to you under the Apache License, Version 2.0 (the 010 * "License"); you may not use this file except in compliance 011 * with the License. You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, 016 * software distributed under the License is distributed on an 017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 018 * KIND, either express or implied. See the License for the 019 * specific language governing permissions and limitations 020 * under the License. 021 */ 022 023 024import org.apache.turbine.util.TurbineRuntimeException; 025 026/** 027 * Thrown by <code>InitableBroker</code> and 028 * <code>ServiceBroker</code> classes to indicate problems with 029 * instatiation of requested objects. 030 * 031 * Make sure you don't confuse this exception with the java.lang.InstantiationException. 032 * 033 * @author <a href="mailto:burton@apache.org">Kevin Burton</a> 034 * @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a> 035 * @version $Id$ 036 * @see org.apache.turbine.services.Initable 037 */ 038public class InstantiationException extends TurbineRuntimeException 039{ 040 /** 041 * Serial version. 042 */ 043 private static final long serialVersionUID = -6657313997260441099L; 044 045 /** 046 * Construct an InstantiationException with specified detail 047 * message. 048 * 049 * @param msg The detail message. 050 */ 051 public InstantiationException(String msg) 052 { 053 super(msg); 054 } 055 056 /** 057 * Construct an InstantiatioException with specified detail message 058 * and nested Throwable. 059 * 060 * @param msg The detail message. 061 * @param t the root exception. 062 */ 063 public InstantiationException(String msg, Throwable t) 064 { 065 super(msg, t); 066 } 067}