Skip to content

Make StoreResponse.Error generic - #232

Closed
eyalgu wants to merge 1 commit into
mainfrom
generic-error
Closed

eyalgu wants to merge 1 commit into
mainfrom
generic-error

Conversation

@eyalgu

@eyalgu eyalgu commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

Adds an Error type to StoreResponse (and Store, Fetcher etc)

@eyalgu

eyalgu commented Sep 17, 2020

Copy link
Copy Markdown
Contributor Author

I got fairly far but we need to decide if we want this and if so how to handle propagating ReadError/WriteError (which are right now propagated to the user as exceptions because we always had an exception type to use before it was generic).

@yigit - thoughts?

@eyalgu eyalgu linked an issue Sep 17, 2020 that may be closed by this pull request
}
is StoreResponse.Error -> {
// disk sent an error, send it down as well
emit(diskData)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main issue - we can't emit these errors that are coming from the SoT anymore

@yigit

yigit commented Sep 21, 2020

Copy link
Copy Markdown
Collaborator

i don't think generifying the error is very feasible, requires lots of coordination.
I would suggest we keep it as is for beta as custom exceptions already let users dispatch data down to the subsriber.

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

Successfully merging this pull request may close these issues.

Should we merge Error.Message and Error.Exception?

3 participants