ExceptionParam

function ExceptionParam: string -DESKTOP- -WEB-

Возвращает текст сообщения об ошибке.

Пример:

try
  ...
except
  MsgBox('Ошибка', ExceptionParam);
end;