Community
Participate
Working Groups
I am reusing the (internal API) PackageOperation::StereotypeCopier to implement a "profile switch" function in Papyrus (bug 408491). Instead of just logging exceptions such as the IllegalStateExceptions that occur on failure to find a matching class/property in the new profile definition, I want to record Diagnostics to present to the user. To that end, it would be helpful to factor out the logging of exceptions in the catch blocks of the StereotypeCopier's copyAttribute/copyContainment/copyReference methods into a handleException(Exception) method that I can override. Currently, I have to copy the entirety of these operations to effect this override. This should be API-safe post M6 because the API in question is internal.
I can take care of this, as I'm the one that needs it. ;-)
Fixed in git commit cdfe9bc.
The changes will be available in the next integration build.
An integration build containing the changes is now available.