• Output an error message to the user interface. Error messages are used to inform users about calculation failures or other issues that prevent normal pricing execution.

    Parameters

    • message: any

      The error message to display to the user

    • Optional location: string

      Where to show the message, one of MessageArea; shown everywhere when omitted

    Returns void

    Example

    error("Unable to calculate price - missing required attributes");
    error("File processing failed - please check file format");

    Example

    error("Please upload a PDF file", Constants.MessageArea.ProductDetailsAndPostEditor);
    

Generated using TypeDoc