package cdac.medinfo.sdk.hl7282.hl7net.commons;

import cdac.medinfo.sdk.hl7282.commoninterface.ISegmentSet;



/**
 * Thrown when Exception is raise.
 */
public interface IExceptionReceiver 
{
	/**
	 * Returns The Exception Occurred.
	 * @param ex - The Exception
	 * @param buffer - Received Buffer for which the exception occurred.
	 */
	public void onException(Exception ex,byte[] buffer);
	
	/**
	 * Returns The Exception Occurred.
	 * @param ex - The Exception
	 * @param ISegmentSet - Received ISegmentSet for which the exception occurred.
	 */
	public void onException(Exception ex,ISegmentSet objISegmentSet);
}
