<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>2 Dec 2015 13:46:48 Z</lastBuildDate><pubDate>1 Dec 2015 06:54:00 Z</pubDate><description>Hi&#13;
I have a small component in which I want to set my own exception handling, no matter where it occurs. I have therefore put a WHEN EXCEPTION clause in the project initialisation code. For testing purposes I have added ExceptionThrow(1) to one of the global procedures. This throws the exception but I still get the stock standard exception message which in turn kicks me right out of the program which is using the component.&#13;
&#13;
However if I throw the exception within a window procedure (even if I have a separate WHEN EXCEPTION within the window init code) it uses the project exception handling. I'm confused! This seems to be back to front to what the help says &amp; what I would logically expect, (but it suits me for present purposes as I only put exception handling in the window to try &amp; work out what is going on).&#13;
&#13;
I don't know if I'm missing something here but I've always had problems getting general exceptions to work; the scope always seems to be different to what I expect!. Is my understanding wrong, or am I doing something wrong? Most importantly how can I get my project exception clause to work for global procedures?&#13;
&#13;
Thanks&#13;
&#13;
David</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing/read.awp</link><title>[WD20] Global Exception Processing</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>bruno.caires</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55247/read.awp</comments><pubDate>2 Dec 2015 13:46:48 Z</pubDate><description>Hi,&#13;
&#13;
Some considerations:&#13;
1) Exceptions are treated hierarchically (first encapsulated code, then Windows defined exception, …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55247/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55247/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing/read.awp">[WD20] Global Exception Processing</source><title>Re: [WD20] Global Exception Processing</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55214/read.awp</comments><pubDate>1 Dec 2015 11:52:00 Z</pubDate><description>Hi David,&#13;
&#13;
you are clearly adding a level of complexity with the component.&#13;
&#13;
Did you try to add a second when exception in t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55214/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing-55214/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55210-wd20-global-exception-processing/read.awp">[WD20] Global Exception Processing</source><title>Re: [WD20] Global Exception Processing</title></item></channel></rss>
