Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexanderpann opened this issue Jul 26, 2023 · 0 comments

Comments

@alexanderpann
Copy link
Member

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant