I have implemented a generic pipeline behavior for my query handlers like the one below:
public sealed class ErrorHandl