mbeddr.core icon indicating copy to clipboard operation
mbeddr.core copied to clipboard

com.mbeddr.mpsutil.smodule.runtime: Need to catch IllegalArgumentException in createModel

Open alexanderpann opened this issue 1 year ago • 0 comments

When the model name is not valid here, an IllegalArgumentException is thrown that is not a ModelCannotBeCreatedException. We should probably just catch the exception but as a workaround, you can first call the following code to check that the model name is valid: SModelName.checkModelName(modelName).getProblemDescription().equals(SModelNameCheck.Pass.getProblemDescription())

alexanderpann avatar Jul 26 '23 14:07 alexanderpann