How to use the @shopgate/pwa-core.errorManager.setMessage function in @shopgate/pwa-core

To help you get started, we’ve selected a few @shopgate/pwa-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopgate / pwa / themes / theme-ios11 / pages / Login / subscriptions.js View on Github external
subscribe(appWillStart$, () => {
    // Translate some error messages
    errorManager.setMessage({
      code: EINVALIDCREDENTIALS,
      context: SHOPGATE_USER_LOGIN_USER,
      message: 'login.error',
    });
  });
}
github shopgate / pwa / themes / theme-gmd / pages / Login / subscriptions.js View on Github external
subscribe(appWillStart$, () => {
    // Translate some error messages
    errorManager.setMessage({
      code: EINVALIDCREDENTIALS,
      context: SHOPGATE_USER_LOGIN_USER,
      message: 'login.error',
    });
  });
}
github shopgate / pwa / libraries / common / subscriptions / error.js View on Github external
subscribe(appWillStart$, () => {
    errorManager.setMessage({
      code: EUNKNOWN,
      message: transformGeneralPipelineError,
    }).setMessage({
      code: EBIGAPI,
      message: transformGeneralPipelineError,
    }).setMessage({
      code: ETIMEOUT,
      message: 'modal.body_error',
    }).setMessage({
      code: ENETUNREACH,
      message: 'modal.body_error',
    });
  });