Einzelnen Beitrag anzeigen

mr2

Registriert seit: 3. Mai 2003
140 Beiträge
 
Delphi 2006 Enterprise
 
#7

Re: Exception-Objekt in OnException auswerten

  Alt 2. Jul 2008, 21:53
Warum denn so kompliziert?

Würde es

Delphi-Quellcode:
try
  DecompressBuf(... // oder irgendein anderer ZLib-Aufruf
except
  on E: EDecompressionError
  do begin
    E.Message = "Die Datei ist beschädigt!";
    raise;
  end;
end;
nicht auch tun?

mr2
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
  Mit Zitat antworten Zitat