Aborts the RPC, returning the specified status to the upstream client, see details below.
It should be the last command in middlewares hooks.
If that method is called in methods:
MiddlewareBase::OnCallStart - remaining OnCallStart hooks won't be called. Will be called OnCallFinish hooks of middlewares that was called before SetError
unary: handler won't be called - all. All OnCallFinish hooks will be called.
stream: from Read/Write throws a special exception, that ends a handler. All OnCallFinish hooks will be called.
MiddlewareBase::OnCallFinish - all OnCallFinish will be called, despite of SetError and exceptions. If the request is going to end with the error status, then the status is replaced with the status of the current hook.