handleError(error) {
    const message = getLocalizedErrorMessage(error['code']) || error['message'];
    this.disposeCurrentComponent_();
    let onRetryClick;
    if (error['retry'] && typeof error['retry'] === 'function') {
      onRetryClick = () => {
        this.reset();
        error['retry']();
      };
    }
    this.currentComponent_ =
        new RecoverableError(message, onRetryClick);
    this.currentComponent_.render(this.container_);
  }
Displays the error message to the end users and provides the ability to
retry for recoverable error.
@param {!Error|!CIAPError|!CIAPRetryError} error The error from CIAP.
@override @suppress {checkTypes} Suppress [] access error for now, will
    need to define CIAPError extern so that dot access will not be renamed.