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

Question: How to distinguish between operation failures #213

Open
pjazdzewski1990 opened this issue Jun 8, 2019 · 0 comments
Open

Question: How to distinguish between operation failures #213

pjazdzewski1990 opened this issue Jun 8, 2019 · 0 comments

Comments

@pjazdzewski1990
Copy link

Hi, sorry if this is a repost, but I can't find a precise answer in the code nor docs.
How do I distinguish between command errors when using rediscala?
My use case is that I have code like this

val client: redis.RedisClient = ???
client.get[V](keyStr)
      .map(v => /* something*/)
      .recover {
        //TODO: put more cases here to capture fine-grained errors 
        case NonFatal(t)      => /* something else*/
      }

and I would like to be able to apply different logging/defaults for various cases, for instance: operation timeout.
Is the behaviour in case of error (as in: exceptions used to fail the future) documented somewhere? I would appreciate any hints. Thanks a lot

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

1 participant