Function applyErrorMessageTemplate

  • This function applies error messages templates like this:

    • Template is a string which contains a variable tags. A variable tag is a a variable name surrounded by %. Eg: %plugin1%
    • A variable name is a string of alphanumeric ascii characters.
    • Every variable tag is replaced by its value.
    • %% is replaced by %.
    • Values can't contain variable tags.
    • If a variable is not present in the template, but present in the values object, an error is thrown.


    • template: string

      The template string.

    • values: {
          [templateVar: string]: any;

      A map of variable names to their values.

      • [templateVar: string]: any

    Returns string

Generated using TypeDoc