Example With More Complex C# code
The example below is from a Frends generic error and exception management Subprocess. You can set a Subprocess for each Process that is called when Process execution ends in an unhandled exception or error situation. The Subprocess is set in the Process Settings, see below 'Subprocess to call on unhandled error'.
Error Handling Subprocess
Here is the example of the unhandled Error handling Subprocess. The Code block example is from the first Element right after the Exclusive Decision on the left-hand side of the Process.
Parse parameters & Set defaults
You do not need to analyse the C# code in detail, as this is more complex C# content in the Code Element.
The next article is Example on Parse