cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaNet <and...@jibeya.com>
Subject Re: Exception handling in flow script
Date Mon, 01 Nov 2004 14:46:03 GMT
Martin,
in a word, YES!

importClass(Packages.test.Artist);

var artist;
var error_msg;

function artistDetails() {
	
	try {
		artist = Artist.getArtist(cocoon.request.artID);
		
	}catch(e) {
		error_msg = e.toString();
	}

hope that helps ;-)


Andrew

On 1 Nov 2004, at 14:28, Martin Rusnak wrote:

> Hello all,
> Is it possible to catch and handle a specific exception class in flow 
> script, like it
> is in Java? For example:
>
> try {
> 	registrator.register()
> } catch (RegistrationException e) {
> 	// do something
> }
>
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


Mime
View raw message