Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching Quota Exceeded Error #51

Open
darron1217 opened this issue Jun 9, 2018 · 3 comments
Open

Catching Quota Exceeded Error #51

darron1217 opened this issue Jun 9, 2018 · 3 comments

Comments

@darron1217
Copy link

Is there a proper way to catch Quota Exceeded Error in this plugin?

How about providing option to register error handler?

@DanielKucal
Copy link
Member

It's on a TODO list. Can you provide an example how would you like it to work?

@darron1217
Copy link
Author

Like below would be nice

this.sessionStorageService.observeError()
  .subscribe((error) => {
     // error handling
  });

@darron1217
Copy link
Author

Or utilizing method below
https://github.com/zoomsphere/ngx-store/tree/master/src/service#listening-to-changes

this.localStorageService.observe()
  .filter(event => !event.isInternal)
  .catch((error) => {
    // error handling
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants