The ConnectionDrainingError class represents a specific type of error that occurs when a connection is being drained.
ConnectionDrainingError
This error is typically used in scenarios where connections need to be gracefully closed or when they are transitioning to an inactive state.
The error message is set to "connection draining" and the error name is overridden to "DrainingConnectionError".
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
The
ConnectionDrainingError
class represents a specific type of error that occurs when a connection is being drained.This error is typically used in scenarios where connections need to be gracefully closed or when they are transitioning to an inactive state.
The error message is set to "connection draining" and the error name is overridden to "DrainingConnectionError".