Delphi : Error handling: generic exception