Re: Suppressing Exceptions in xarSecConfirmAuthKey()
Marcel van der Boom <[email protected]> Thu, 12 Mar 2009 17:11:03 +0100
| Newsgroups | gmane.comp.cms.xaraya.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12 mrt 2009, at 16:00, Hb wrote: > Of course http://www.xaraya.com/documentation/rfcs/rfc0054.html is > valuable. > > But how can exceptions be handled when the code is called from a > template? We > dislike PHP in templates. In php4 it is rather hard to do that (as the exceptions are not really exceptions). If they were, handling exceptions in templates could be done for example by overriding the exceptions handler in the proper context. One way to do this is to define a context dependent exception handler. This would be appropriate when using xmlrpc, for example. In that case any exception is transformed into an xmlrpc error response (a predefined xml fragment to return to the client) A similar technique could be used for 'regular' templates, if needed. marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV -- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra Replica build -- http://cobra.mrblog.nl _______________________________________________ Xaraya_devel mailing list [email protected] http://xaraya.com/mailman/listinfo/xaraya_devel