All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aperteworkflow.util.AperteErrorCheckUtil Maven / Gradle / Ivy

The newest version!
package org.aperteworkflow.util;

import org.aperteworkflow.service.fault.AperteWsIllegalArgumentException;

public class AperteErrorCheckUtil {
	
	public static void checkCorrectnessOfArgument (Object object, AperteIllegalArgumentCodes aperteIllegalArgumentCodes) throws AperteWsIllegalArgumentException{
		if(object== null){
			aperteIllegalArgumentCodes.throwAperteWebServiceException();
		}	
		if(object instanceof String ){
			String string = (String) object;
			if(string.isEmpty()){
				aperteIllegalArgumentCodes.throwAperteWebServiceException();	
				
				System.out.println("asdasd");
			}	
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy