GetError

More:

function GetError(n: integer) : string;

Delphi Example