A writ issuing out of chancery, or a superior court, to
   call up the records of a inferior court, or remove a cause there
   depending, in order that the party may have more sure and speedy
   justice, or that errors and irregularities may be corrected. It is
   obtained upon complaint of a party that he has not received justice, or
   can not have an impartial trial in the inferior court.