Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp webpart base.baseclientsidewebpart.rendererror

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-webpart-base > BaseClientSideWebPart > renderError

BaseClientSideWebPart.renderError() method

This API should be used to render an error message in the web part display area. Also logs the error message using the trace logger.

Signature:

protected renderError(error: Error): void;

Parameters

Parameter Type Description
error Error An error object containing the error message to render.

Returns:

void

Clone this wiki locally