HED JavaScript Library
    Preparing search index...

    Class Issue

    A HED validation error or warning.

    Index
    • Constructor.

      Parameters

      • internalCode: string

        The internal error code.

      • hedCode: string

        The HED 3 error code.

      • level: string

        The issue level (error or warning).

      • parameters: {}

        The error string parameters.

      Returns Issue

    _bounds: number[] | undefined

    The bounds of this issue.

    _parameters: {}

    The parameters to the error message template.

    hedCode: string

    The HED 3 error code.

    internalCode: string

    The internal error code.

    level: string

    The issue level (error or warning).

    SPECIAL_PARAMETERS: Map<string, string> = ...
    • get bounds(): number[] | undefined

      Get the issue's bounds.

      Returns number[] | undefined

      The issue bounds within the parent string.

    • get message(): string

      Generate the detailed error message.

      Returns string

      This issue's message.

    • get parameters(): {}

      Get the issue parameters.

      Returns {}

      The issue parameters.

    • set parameters(parameters: {}): void

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

      Parameters

      • parameters: {}

        The new issue parameters.

      Returns void

    • Add a new parameter value.

      Parameters

      • name: string

        The parameter name.

      • value: any

        The new parameter value.

      Returns void

    • Add multiple parameters for this Issue.

      Parameters

      • parameters: {}

        The new values of the parameters.

      Returns void

    • (Re-)generate the issue message.

      Returns void

      The message is a getter computed from the current parameters, so there is nothing to regenerate.

    • 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.