<commit_before>package org.springframework.beans.factory;

import org.springframework.beans.BeansException;

/**
 * BeanFactoryBeanʵ޷ҵӦBeanʱ׳쳣
 * 
 * @author Wendy
 *
 */
public class NoSuchBeanDefinitionException extends BeansException {

	/** ޷ҵBean */
	private String beanName;
	/** ҪBean */
	private Class beanType;

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param name
	 *            ҲBean
	 */
	public NoSuchBeanDefinitionException(String name) {
		super("No bean named '" + name + "' is defined");
		this.beanName = name;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param name
	 *            ҲBean
	 * @param message
	 *            ľϢ
	 */
	public NoSuchBeanDefinitionException(String name, String message) {
		super("No bean named '" + name + "' is defined: " + message);
		this.beanName = name;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param type
	 *            ҪBean
	 */
	public NoSuchBeanDefinitionException(Class type) {
		super("No unique bean of type [" + type.getName() + "] is defined");
		this.beanType = type;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * @param type
	 *           ҪBean
	 * @param message
	 *            ľϢ
	 */
	public NoSuchBeanDefinitionException(Class type, String message) {
		super("No unique bean of type[" + type.getName() + "] is defined: " + message);
		this.beanType = type;
	}
	
	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * @param type ҪBean
	 * @param dependencyDescription ԭʼϢעʱ
	 * @param message ľϢ
	 */
	public NoSuchBeanDefinitionException(Class type,String dependencyDescription,String message){
		super("No");
	}

}<commit_msg>2016-02-21 13:23<commit_after>package org.springframework.beans.factory;

import org.springframework.beans.BeansException;
import org.springframework.util.StringUtils;

/**
 * BeanFactoryBeanʵ޷ҵӦBeanʱ׳쳣
 * 
 * @author Wendy
 *
 */
public class NoSuchBeanDefinitionException extends BeansException {

	/** ޷ҵBean */
	private String beanName;
	/** ҪBean */
	private Class beanType;

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param name
	 *            ҲBean
	 */
	public NoSuchBeanDefinitionException(String name) {
		super("No bean named '" + name + "' is defined");
		this.beanName = name;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param name
	 *            ҲBean
	 * @param message
	 *            ľϢ
	 */
	public NoSuchBeanDefinitionException(String name, String message) {
		super("No bean named '" + name + "' is defined: " + message);
		this.beanName = name;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * 
	 * @param type
	 *            ҪBean
	 */
	public NoSuchBeanDefinitionException(Class type) {
		super("No unique bean of type [" + type.getName() + "] is defined");
		this.beanType = type;
	}

	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * @param type
	 *           ҪBean
	 * @param message
	 *            ľϢ
	 */
	public NoSuchBeanDefinitionException(Class type, String message) {
		super("No unique bean of type[" + type.getName() + "] is defined: " + message);
		this.beanType = type;
	}
	
	/**
	 * һµNoSuchBeanDefinitionExceptionʵ
	 * @param type ҪBean
	 * @param dependencyDescription ԭʼϢעʱ
	 * @param message ľϢ
	 */
	public NoSuchBeanDefinitionException(Class type,String dependencyDescription,String message){
		super("No matching bean of type ["+type.getName()+"] found for dependency"+
				(StringUtils.hasLength(dependencyDescription)?" [" + dependencyDescription+"]":"")+
				": "+message
				);
	}
	
	/**
	 * زҲbean
	 * @return
	 */
	public String getBeanName(){
		return this.beanName;
	}
	
	/**
	 * زҲbean
	 * @return
	 */
	public Class getBeanType(){
		return this.beanType;
	}

}
{'fraction_non_alphanumeric': 0.12219792236194642, 'fraction_numerical': 0.0032804811372334607, 'mean_word_length': 3.1579545454545452, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3144408', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1178, 'n_words': 252}