perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Trapping errors from embperl subroutines
Date Sun, 17 Aug 2003 10:51:53 GMT
> Running 1.x.  I want to load a perl module (Execute('*') with import
> set to 0) and then later in the routine call $this->process().
>
> In normal perl code I would do this:
>
> try {
>      $this->process($udat{account_id});
> } otherwise {
>      my $err = shift;
>      $this->Error(0);
>      ...
> };
>
> But that doesn't work here.

I am not quite sure what the try .. otherwise does internaly, but could you
try what happens with you write

eval { $this-> process ... } ;
if ($@) { ... throw }

does this catch you exception?

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message