hed-typescript API
    Preparing search index...

    Class Issue

    A HED validation error or warning.

    Index
    _bounds: Bounds | undefined

    The bounds of this issue.

    _parameters: IssueSavedParameters

    The parameters to the error message template.

    hedCode: string

    The HED 3 error code.

    internalCode: string

    The internal error code.

    level: IssueLevel

    The issue level (error or warning).

    • get bounds(): Bounds | undefined

      Get the issue's bounds.

      Returns Bounds | undefined

      The issue bounds within the parent string.

    • set bounds(value: unknown): void

      Validate and set the issue's bounds.

      Parameters

      • value: unknown

        The issue bounds within the parent string.

      Returns void

    • get message(): string

      Generate the detailed error message.

      Returns string

      This issue's message.

    • get parameters(): IssueSavedParameters

      Get the issue parameters.

      Returns IssueSavedParameters

      The issue parameters.

    • set parameters(parameters: IssueParameters): void

      Set new parameters by converting all parameters except the substring bounds (an integer array) to their string forms.

      Parameters

      Returns void

    • Add a new parameter value.

      Parameters

      • name: string

        The parameter name.

      • value: unknown

        The new parameter value.

      Returns void

    • Determine whether this issue has a given parameter.

      Parameters

      • name: string

        The parameter name to check.

      Returns boolean

      Whether this issue already has a parameter by that name.