mbeddr.core
mbeddr.core copied to clipboard
com.mbeddr.mpsutil.smodule.runtime: Need to catch IllegalArgumentException in createModel
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())