In your component editor (which implements For example, your
public void apply() throws ISDKxception {
try {
// ... update the model using the model APIs, most of which
// ... are defined to throw model exceptions, which are a type
// ... of IException.
}
catch (SDKException me) {
// API failure of some kind... we can propagate them up
throw me;
}
catch (Exception ex) {
// More likely my component's failure. Note we include the
// failing exception in the new IException.
throw new SDKException(ex, "My component failed during update of
model.");
}
}
The infrastructure will catch all exceptions propagated out of the component
editor method, such as the editor’s | |||||||