cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: undefined exception object in flow script try {} catch {} block
Date Thu, 27 Jan 2005 13:58:47 GMT
Ellis Pritchard wrote:
> Hi,
> 
> Using Cocoon 2.1.6, I don't seem to be getting the exception object 
> passed through when catching an exception in flowscript; I've reduced it 
> to the most simple case:
> 
> function login() {
>    try {
>        throw "bang";
>    } catch (x) {
>        cocoon.logger.debug(x);
>    }
> }
> 
> I get the error message 'The undefined value has no properties.', and 
> sure enough, the Flow debugger says that x is undefined (actually it 
> doesn't even exist).
cocoon.log.debug()

http://cocoon.apache.org/2.1/userdocs/flow/api.html#Log+Object
-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message