Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2002-2005 the original author or authors.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.springframework.beans.factory;
 
Exception thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition.

Author(s):
Juergen Hoeller
 
 public class BeanCreationException extends FatalBeanException {
 
 
 	private String beanName;

Create a new BeanCreationException.

Parameters:
msg the detail message
 
 	public BeanCreationException(String msg) {
 		super(msg);
 	}

Create a new BeanCreationException.

Parameters:
msg the detail message
ex the root cause
 
 	public BeanCreationException(String msgThrowable ex) {
 		super(msgex);
 	}

Create a new BeanCreationException.

Parameters:
beanName the name of the bean requested
msg the detail message
 
 	public BeanCreationException(String beanNameString msg) {
 		this(beanNamemsg, (Throwablenull);
 	}

Create a new BeanCreationException.

Parameters:
beanName the name of the bean requested
msg the detail message
ex the root cause
 
 	public BeanCreationException(String beanNameString msgThrowable ex) {
 		super("Error creating bean with name '" + beanName + "': " + msgex);
 	}

Create a new BeanCreationException.

Parameters:
resourceDescription description of the resource that the bean definition came from
beanName the name of the bean requested
msg the detail message
 
 	public BeanCreationException(String resourceDescriptionString beanNameString msg) {
 		this(resourceDescriptionbeanNamemsgnull);
 	}

Create a new BeanCreationException.

Parameters:
resourceDescription description of the resource that the bean definition came from
beanName the name of the bean requested
msg the detail message
ex the root cause
 
 	public BeanCreationException(String resourceDescriptionString beanNameString msgThrowable ex) {
 		super("Error creating bean with name '" + beanName + "' defined in " + resourceDescription + ": " + msgex);
 		this. = resourceDescription;
 		this. = beanName;
 	}

Return the description of the resource that the bean definition came from, if any.
 
	}

Return the name of the bean requested, if any.
	public String getBeanName() {
		return ;
	}
New to GrepCode? Check out our FAQ X