In the Project Explorer, under the process interface, expand an event. For example:
Right-click
Errors and select
New
> Error. The following dialog is displayed:
Enter a name for the error code and click
Finish. The error code you created is displayed in the Project Explorer, and in the Process Interface Editor: