Skip to content

Add custom errors #8

@tlinford

Description

@tlinford

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 {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions