use of org.compiere.util.AdempiereSystemError in project adempiere by adempiere.
the class EntityTypeRegister method doIt.
// prepare
/**
* Process
* @return summary
* @throws Exception
*/
protected String doIt() throws Exception {
log.info("AD_EntityType_ID=" + p_AD_EntityType_ID);
MEntityType et = new MEntityType(getCtx(), p_AD_EntityType_ID, get_TrxName());
if (et.isSystemMaintained())
throw new AdempiereUserError("You cannot register a System maintained entity");
throw new AdempiereSystemError("To register an Entity Type, contact Adempiere directly");
// return "Not Supported Yet";
}
Aggregations