Re: HTML::Mason::Exception handler <%method> ?

"C.J. Adams-Collier" <[email protected]> Thu, 13 Mar 2008 09:54:36 -0700
Newsgroups gmane.comp.web.mason.devel,gmane.comp.web.mason.user
Organization Collier Technologies
Message-ID <1205427276.5331.48.camel@localhost>
--===============0099083211==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-9lS/v51eL9gB5dhTxHKe"


--=-9lS/v51eL9gB5dhTxHKe
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

D'oh.  I realized that shortly into writing it, subscribed to the list
and then forgot to change the to: line.  My apologies.

On Thu, 2008-03-13 at 09:59 +0100, Scott Lanning wrote:
> [this is more for mason-users, n'est-ce pas?]
>=20
> On Wed, 12 Mar 2008, C.J. Adams-Collier wrote:
> > We would like to start throwing and handling exceptions to determine
> > the service responsible for causing content problems.
> >
> > Is it possible to specify a <%method> as a catch block for any
> > exceptions thrown within a given lexical scope?
>=20
> If by "lexical scope" you could mean "component",
> then there's HTML::Mason::Plugin whose end_component_hook
> can access exceptions thrown during the eval of a component
> (or at the end_request_hook level).
>=20
> For a more general "lexical scope", I guess you could wrap
> eval { ... } around the scope and send any $@ to the %method
> in the normal ways.

--=-9lS/v51eL9gB5dhTxHKe
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBH2VxMXKBS0hdr6UYRAvSfAJ92htmPy4BNHxkmbkfM5M2hgy2VEgCghlUY
ZhfAKctSd0uaiXRMqdOtu0g=
=7mZi
-----END PGP SIGNATURE-----

--=-9lS/v51eL9gB5dhTxHKe--



--===============0099083211==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0099083211==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mason-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-devel

--===============0099083211==--