package egovframework.exception;

import lombok.Setter;
import org.aspectj.lang.JoinPoint;
import org.egovframe.rte.fdl.cmmn.aspect.ExceptionTransfer;

@Setter
//@Aspect
public class EgovAopExceptionTransfer {

	private ExceptionTransfer exceptionTransfer;

    //@Pointcut("execution(* go.kr.project..impl.*Impl.*(..)) or execution(* egovframework.com..*Impl.*(..))")
	private void exceptionTransferService() {}

	//@AfterThrowing(pointcut="exceptionTransferService()", throwing="ex")
	public void doAfterThrowingExceptionTransferService(JoinPoint thisJoinPoint, Exception ex) throws Exception {
		exceptionTransfer.transfer(thisJoinPoint, ex);
	}

}
