You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When propagating changes to clients, catching RuntimeException is too generic. We should be more specific here, for example by throwing our own, e.g. MandatoryReferenceMissingException.
This is also applicable to other parts in the code, for example:
The
MandatoryReferenceAccessor
currently throws aRuntimeException
when a mandatory reference is missing:https://github.com/modelix/modelix.core/blob/main/metamodel-runtime/src/commonMain/kotlin/org/modelix/metamodel/ReferenceAccessor.kt#L27
When propagating changes to clients, catching RuntimeException is too generic. We should be more specific here, for example by throwing our own, e.g.
MandatoryReferenceMissingException
.This is also applicable to other parts in the code, for example:
https://github.com/modelix/modelix.core/blob/main/metamodel-runtime/src/commonMain/kotlin/org/modelix/metamodel/ChildAccessor.kt#L24
The text was updated successfully, but these errors were encountered: