Could the errors (particularly maxBuffer exceeded) have specific classes so that they can more easily be caught downstream?
I'm wondering if there's a reason you're not using this pattern? Do you normally use the message to decide which errors to handle and which to pass through?
Could the errors (particularly
maxBuffer exceeded
) have specific classes so that they can more easily be caught downstream?I'm wondering if there's a reason you're not using this pattern? Do you normally use the message to decide which errors to handle and which to pass through?