User | Kudos |
---|---|
10 | |
3 | |
2 | |
2 | |
2 |
Part 1: Information in the "advanced error cluster":
New elements would be "severity" and "error occurred at time".
Part 2: Behavior of the "advanced error cluster":
I think the best approach for the new error cluster would be to have it like the Dynamic Data Type, which was introduced with LV Express (7.0).
a) Compatibility to the "old error cluster":
If you wire the advanced error cluster to an old one, it would automatically create a "From Advanced Error Cluster"/"To Advanced Error Cluster". This would enable working with both clusters in parallel to keep downward compatibility.
Sure, "From Advanced Error Cluster" would remove the newly added information from the error wire. This is some caveat/downside when working with "old" functions.
b) Connecting a source of an advanced error cluster wire to an existing wire of the type would create a Merge Errors automatically. Wiring additional (advanced) error clusters on the input side of this Merge Errors would increase the number of inputs accordingly.
c) If two or more inputs of the Merge Errors function would carry an error information, the output would be a single advanced error cluster with the error information of the error input containing the highest severity.
Part 3: Possible new features for "advanced error cluster":
Esp. severity could enable good "default" functionality which could be enabled/disabled in the LV settings. Something coming into mind is:
a) Log Error: All errors are logged in a preconfigured error log file when they occur.
b) Log and Discard Low Severity: Errors which occur with Low severity are automatically logged into a preconfigured error log file and then discarded (removed from the wire).
Part 4: Other suggestion already made in regard to Error Handling:
Object Orientated Error Handler
Feel free to add comments in order to create an "comprehensive list of error handling strategies" in order to pick the most promising for future LV features.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.