Skip to content

How to catch exceptions? #543

@omidb

Description

@omidb

I have a ZIO grpc server running and somewhere in my code there is an ??? unimplemented exception. I get now cause or anything in my call and I cannot log the error or cause. Using the debugger I see that it ends up in here:

).onExit(ex => call.close(ListenerDriver.exitToStatus(ex), requestContext.responseMetadata.metadata).ignore)

of course, wrapping everything in ZIO.attempt bubbles up the error but that is not a good pattern to follow.

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions