pytorch
07bd053a - [rpc] Wrap exception creation with try/catch (#87224)

Commit
3 years ago
[rpc] Wrap exception creation with try/catch (#87224) Sometimes, we cannot recreate the exception with only string (for example if it is a custom exception type). Ideal situation would be to carry over all details on how to recreate the remote end's exception and throw that on client, but for now, we raise a RuntimeError with the original error msg when we cannot reconstruct. Created from CodeHub with https://fburl.com/edit-in-codehub Differential Revision: [D40353274](https://our.internmc.facebook.com/intern/diff/D40353274/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/87224 Approved by: https://github.com/fduwjj
Author
Committer
Parents
Loading