# Zero touch node - how to make error visible?

**URL:** <https://forum.dynamobim.com/t/zero-touch-node-how-to-make-error-visible/40481>\
**Category:** Developers\
**Tags:** zerotouch\
**Created:** [September 10, 2019, 7:56am UTC](https://forum.dynamobim.com/t/zero-touch-node-how-to-make-error-visible/40481 "2019-09-10T07:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael684](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Michael684](https://forum.dynamobim.com/u/Michael684)\
**Post date:** [September 10, 2019, 7:56am UTC](https://forum.dynamobim.com/t/zero-touch-node-how-to-make-error-visible/40481/1 "2019-09-10T07:56:21Z")

</div>

Hi guys,

I’m looking for some inspiration on how to make errors well visible in my ZT nodes.

See the example below. I can definitely set an error message (such as in the example below: “_A node load was applied in loadcase 1 on a Dynamo point that does not exist in RFEM as a node, make sure the node is sent to RFEM as geometry_”)

But it is not really well visible for a user.

Does anyone have suggestions on how to make the error more visible? Perhaps I can set an node error state (orange? red?) but I have not yet found code to do so. Does anyone know how to do that?

Thanks! 😀

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5ff2f86b52c00cd7c4d6d975ffb0e3c72387aeed.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [September 10, 2019, 8:06am UTC](https://forum.dynamobim.com/t/zero-touch-node-how-to-make-error-visible/40481/2 "2019-09-10T08:06:39Z")

</div>

Throw an exception:

```
    /// <summary>
    /// Thrown if the <see cref="Revit.Sheet.Duplicate"/> option input by the user is invalid.
    /// </summary>
    internal static void ValidateDuplicateOption(int duplicateOption)
    {
        //#Validate the duplicate option
        if (duplicateOption < 0 | duplicateOption > 2)
        {
            throw new InvalidOperationException("Sheet.Duplicate operation failed.\nInvalid duplicateOption input. Input an integer within the range 0-2");
        }
    }
```

---

<div class="post-metadata">

**Author:** ![Michael684](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Michael684](https://forum.dynamobim.com/u/Michael684)\
**Post date:** [September 10, 2019, 8:18am UTC](https://forum.dynamobim.com/t/zero-touch-node-how-to-make-error-visible/40481/3 "2019-09-10T08:18:09Z")

</div>

That’s an excellent solution!

Thanks Thomas!

Used:  
`throw new InvalidOperationException(ErrorMessage);`

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dc176169f12ce4d8374900c549bd66c0d7a484c7.png)
