Throws an exception in the consumer task. This is used to pass the connection exceptions to the user.
throws exception in the worker task
See Implementation