package CoreFS.SA01;

import CoreFS.SA06.CoreReturnObject;

public class CoreExceptionHandler {

    public static CoreReturnObject coreExceptionHandler(CoreException ce){
    	return exceptionHandler(ce);
    }
    
    public static CoreReturnObject exceptionHandler(Exception e){
    	CoreReturnObject cro = new CoreReturnObject();
    	
        cro.setV_errCode(-1);
        cro.setV_errMsg(e.getMessage());
       
        cro.setException(e);
        cro.setResult(null);
        try {
			throw(e);
		} catch (Exception e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		return cro;  	
    }
}
