🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #345065

Re: Dyrektywy kompilatora

#345065
From: konsul41
Date: Fri, 05 Aug 2016 07:03
20 lines
1637 bytes
W dniu 04-08-2016 o 15:59, Bartłomiej Sosenko pisze:
> Chociaż jeśli ktoś wie jak można to zrobić określając fragment kodu to było by lepiej - bo tak mogę w przyszłości przegapić tego samego typu błąd w innym miejscu kodu ...
>
Które Delphi?
Chodzi o samą informację z Delphi, to można (przynajmniej w XE2) 
zaznaczyć aby ignorował ten wyjątek, który wyskoczył.
Wyłączenie w ogóle wyjątku w aplikacji to nie porozumienie.
Lepiej przechwycić wyjątek ogólny.
pisane z palca


try
  funkcja xxx
except
   ON E : Exception DO
   begin
     ShowMessage(E.message);
     //lub cokolwiek innego
   end;
end
Technical Details
Message-ID: <no1dod$6d9$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!wsisiz.edu.pl!.POSTED.jue163.internetdsl.tpnet.pl!not-for-mail
References: <0762afa3-a382-4531-96e9-1a5bea0f886b@googlegroups.com> <77d91372-c97c-415e-a29f-fff5f0cce113@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!wsisiz.edu.pl!.POSTED.jue163.internetdsl.tpnet.pl!not-for-mail
From: "konsul41@wp.pl" <konsul41@wp.pl>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Dyrektywy kompilatora
Date: Fri, 5 Aug 2016 09:03:40 +0200
Organization: http://www.wit.edu.pl
Message-ID: <no1dod$6d9$1@portraits.wsisiz.edu.pl>
References: <0762afa3-a382-4531-96e9-1a5bea0f886b@googlegroups.com> <77d91372-c97c-415e-a29f-fff5f0cce113@googlegroups.com>
Mime-Version: 1.0
Injection-Date: Fri, 5 Aug 2016 07:03:41 +0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="jue163.internetdsl.tpnet.pl:95.48.160.163"; logging-data="6569"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To: <77d91372-c97c-415e-a29f-fff5f0cce113@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit