Is Pytorch has similar `Status` class for indicating return result?

I found that Tensorflow has the Status class , which is very useful for debugging and the return value is human-readable.

Do Pytorch has the similar class? For example, I could return Status::OK() instead of return 0 for indicating a successful executing.