Skip to content

Use errors in custom middleware #1198

Discussion options

You must be logged in to vote

That means:
I need to implement the interface IForwarderErrorFeature and can then set / get it in my middleware to look whether there was are an exception or not?
Does yarp generate this also this way? I know that HttpForwarder generate this, but I only use middleware.
My target is, to react on any exception / error that can happen, custom or yarp. On the best way.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@Tratcher
Comment options

@alnikola
Comment options

Comment options

You must be logged in to vote
2 replies
@alnikola
Comment options

@MihaZupan
Comment options

Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants