cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ellis Pritchard <el...@nukinetics.com>
Subject undefined exception object in flow script try {} catch {} block
Date Thu, 27 Jan 2005 13:51:54 GMT
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).

Any ideas?

Ellis.


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


Mime
View raw message