-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.exceptions.TagError
César Román edited this page Apr 30, 2024
·
8 revisions
-
exceptions.BaseException
-
exceptions.Exception
-
incendium.exceptions.Error
- incendium.exceptions.TagError
-
incendium.exceptions.Error
-
exceptions.Exception
Args:
- message (
str
): The error message.
import incendium.tag
from incendium.exceptions import TagError
def write_tags():
"""Perform bulk write."""
tags = [
"[tagProvider]Tags/T2",
"[tagProvider]Tags/T3",
"[tagProvider]Tags/T5",
"[tagProvider]Tags/T7",
]
values = [2, 3, 5, 7]
ret = incendium.tag.write(tags, values)
if 0 in ret:
raise TagError("Error writing to one or more tags.")