The containing class is available as OS\TimeoutException in the www repository.
OS\TimeoutException
public static function _getValidErrno(): HH\Lib\OS\Errno;
HH\Lib\OS\Errno