data icon indicating copy to clipboard operation
data copied to clipboard

Update `ProtocolServer`'s exceptions to be more specific

Open NivekT opened this issue 2 years ago • 1 comments

Within ProtocolServer inside dataloader2/communication/protocol.py, the exceptions being raised inside are generic Exception. Ideally, we should change the exceptions to be more specific, such that they can be handled easily elsewhere.

cc: @ejguan

NivekT avatar Feb 07 '23 23:02 NivekT

Yeah. This is going to be important for us to differentiate the source of Error from next(dp_iter) or Error related to Request/Response

ejguan avatar Feb 08 '23 20:02 ejguan