You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by david joffrin <da...@hotmail.com> on 2005/03/10 08:31:26 UTC
How to launch the Exception page?
Hi,
In certain cases, I do not want to use the standard error framework
(IValidate), but be more aggressive via launching the Exception page.
How can I do that from a AbstractPage? The activateExceptionPage is a
protected method of AbstractEngine!
Thanks.
DvJ
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to launch the Exception page?
Posted by Bryan Lewis <br...@maine.rr.com>.
If you really only want to launch the Exception page, another way is....
Exception nextPage = (Exception) getRequestCycle().getPage("Exception");
nextPage.setException(myException);
cycle.activate(nextPage);
This would make sense if you've customized your own copy of the Exception
page to handle all the error cases in your app.
----- Original Message -----
From: "Yves Sy" <yv...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, March 10, 2005 3:26 AM
Subject: Re: How to launch the Exception page?
> You can try throwing a RuntimeException from your page, that will
> bring up the exception page for sure...
>
>
> On Thu, 10 Mar 2005 07:31:26 +0000, david joffrin
> <da...@hotmail.com> wrote:
> > Hi,
> >
> > In certain cases, I do not want to use the standard error framework
> > (IValidate), but be more aggressive via launching the Exception page.
> >
> > How can I do that from a AbstractPage? The activateExceptionPage is a
> > protected method of AbstractEngine!
> >
> > Thanks.
> > DvJ
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> A bus station is where a bus stops. A train station is where a train
> stops. On my desk I have a work station...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to launch the Exception page?
Posted by Yves Sy <yv...@gmail.com>.
You can try throwing a RuntimeException from your page, that will
bring up the exception page for sure...
On Thu, 10 Mar 2005 07:31:26 +0000, david joffrin
<da...@hotmail.com> wrote:
> Hi,
>
> In certain cases, I do not want to use the standard error framework
> (IValidate), but be more aggressive via launching the Exception page.
>
> How can I do that from a AbstractPage? The activateExceptionPage is a
> protected method of AbstractEngine!
>
> Thanks.
> DvJ
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
A bus station is where a bus stops. A train station is where a train
stops. On my desk I have a work station...
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org