Handling the Generic External Application Error
During component execution, if an exception occurs within one of its events, the component handles the exception internally. It raises the Error event with details about the issue and then attempts to continue execution if possible.
After the method completes, the component re-throws the original exception with a code of -1, labeling it as an External application error. This indicates that the exception originated outside the component itself, typically within user-implemented event code.
This behavior helps identify errors that occur in custom event handlers while allowing the component to report and surface them appropriately after execution.
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.