/*L
 * Copyright Washington University in St. Louis, SemanticBits, Persistent Systems, Krishagni.
 *
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/commons-module/LICENSE.txt for details.
 */

package edu.wustl.common.exception;

import edu.wustl.dao.exception.DAOException;


/**
 * @author kapil_kaveeshwar
 * All Bizlogic methods should wrap other exception and throws only this exception.
 */
public class BizLogicException extends ApplicationException
{

	/**
	 * Serial Version Unique Identifier.
	 */
	private static final long serialVersionUID = -8514900107659307676L;

	/**
	 * The Only public constructor to restrict creating object without
	 * initializing mandatory members.
	 * @param errorKey The object which will represent the root cause of the error.
	 * @param exception root exception, if any, which caused this error.
	 * @param msgValues custom message, additional information.
	 */
	public BizLogicException(ErrorKey errorKey, Exception exception, String msgValues)
	{
		super(errorKey,exception,msgValues);
	}

	/**
	 * Wrapping daoException to bizLogic Exception.
	 * @param daoException dao exception.
	 */
	public BizLogicException(DAOException daoException)
	{
		super(daoException);
	}
	
	public BizLogicException(ErrorKey errorKey, Exception exception, String msgValues,String customizedMsg)
	{
		super(errorKey, exception, msgValues,customizedMsg);
	}
}
