1# Class (SslErrorHandler) 2 3Implements an **SslErrorHandler** object to handle SSL error notification events returned by the **Web** component. For details about the sample code, see the [onSslErrorEvent](./arkts-basic-components-web-events.md#onsslerrorevent12) event. 4 5> **NOTE** 6> 7> - The initial APIs of this component are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. 8> 9> - The initial APIs of this class are supported since API version 9. 10> 11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer. 12 13## constructor<sup>9+</sup> 14 15constructor() 16 17Constructs a **SslErrorHandler** object. 18 19**System capability**: SystemCapability.Web.Webview.Core 20 21## handleCancel<sup>9+</sup> 22 23handleCancel(): void 24 25Cancels this request. 26 27**System capability**: SystemCapability.Web.Webview.Core 28 29## handleConfirm<sup>9+</sup> 30 31handleConfirm(): void 32 33Continues using the SSL certificate. 34 35**System capability**: SystemCapability.Web.Webview.Core 36 37## handleCancel<sup>20+</sup> 38 39handleCancel(abortLoading: boolean): void 40 41Cancels this request and determines whether to stop loading based on the **abortLoading** parameter. 42 43**System capability**: SystemCapability.Web.Webview.Core 44 45**Parameters** 46 47| Name | Type| Mandatory | Description | 48| --------------- | -------- | ---- |------- | 49| abortLoading | boolean | Yes | Whether to stop loading the page after the request is canceled.<br>The value **true** means to stop loading the page, and **false** means to continue loading the page.<br>The default value is **false**.| 50