Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Catch.cs
1using System.Threading.Tasks;
2using System.Xml;
5
7{
11 public class Catch : ActionContainer
12 {
16 public Catch()
17 : base()
18 {
19 }
20
24 [DefaultValueNull]
25 public string ExceptionVariable { get; set; }
26
30 public override string LocalName => nameof(Catch);
31
36 public override IStateMachineNode Create()
37 {
38 return new Catch();
39 }
40
45 public override Task Parse(XmlElement Xml)
46 {
47 this.ExceptionVariable = XML.Attribute(Xml, "exceptionVariable");
48
49 return base.Parse(Xml);
50 }
51 }
52}
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Abstract base class for action nodes that contain other action nodes.
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Definition: Catch.cs:36
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition: Catch.cs:45