Yes! I'd like to call a special exception handling method and pass an error 
string to it. This method would know how to return to the run-mode which 
causes the error.

The method called by "AUTOLOAD" is an ideal candidate for this.

Unfortunately, I don't know:

1) How to cause this method to be called?
2) How to pass it the error string?

I  think "AUTOLOAD" run-mode is a nice feature. But until I know how to 
exploit it, I would simply go for the following:

unless ( $object->do_yourself() ) {
return catch_exception( "CRITICAL: Error, object can not do itself!" );
}


Thanks for your support!

Roses Longin Odounga

Netset Consulting
Falltorweg 4
D-65428 R�sselsheim
Tel. +49 (0) 6142 - 938978
GSM  +49 (0) 173  - 3201063
Mailto [EMAIL PROTECTED]
http://www.gabon-net.com



>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: [cgiapp] Error Handling with CGI::Application
>Date: Wed, 17 Oct 2001 08:30:08 -0500
>
>See internal comments (I hate *&^@#*(&$ Notes!)...
>
>
>
>
>
>[EMAIL PROTECTED] on 10/17/2001 06:45:31 AM
>
> > To: [EMAIL PROTECTED]
> > Subject:     [cgiapp] Error Handling with CGI::Application
> >
> > unless ( $object->do_yourself() ) {
> >   warn "CRITICAL: Error, object can not do itself!\n";
> >   return;
> > }
> >
> > I'm looking for a mechanism for returning this error message to the
>browser.
> > Currently, it just warn "Document contains no data" and didn't update 
>the
> > screen.
>
>How about this:
>
>  unless ( $object->do_yourself() ) {
>    warn "CRITICAL: Error, object can not do itself!\n";
>    return "CRITICAL: Error, object can not do itself!\n";
>  }
>
>Although, I would probably call a function that would generate "pretty"
>HTML code instead, but the method is the same.
>
>Brian
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to