It would be useful to have some exported errors to be able to distinguish the reason for failures on getting/setting an attribute.
For example here it would be nice to know if it fails because the entity does not have the attribute, or if it fails because the attribute is not a string:
comment, err := reportEntity.GetAttributeAsString("comment")
if err != nil {
...
}
It would be useful to have some exported errors to be able to distinguish the reason for failures on getting/setting an attribute.
For example here it would be nice to know if it fails because the entity does not have the attribute, or if it fails because the attribute is not a string: