Thanks will fix. On 4/28/07, Martin Strand <[EMAIL PROTECTED]> wrote:
That page says "tapestry.Infrastructure", it should be "tapestry.InfrastructureOverrides" Martin On Sun, 29 Apr 2007 04:44:19 +0200, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > Right. For more on the hivemind specifics only see: > > http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html > > On 4/27/07, jake123 <[EMAIL PROTECTED]> wrote: >> >> >> Hi Josh, >> you can do a infrastructur override in your hivemodule.xml like this: >> >> <contribution configuration-id="tapestry.InfrastructureOverrides"> >> <property name="exceptionPageName" value="CustomExceptionPage" >> /> >> </contribution> >> >> and then you create your own CustomExceptionPage: >> >> public abstract class CustomExceptionPage extends Exception implements >> PageDetachListener { >> >> private static Logger log = >> LoggerFactory.getLogger(CustomExceptionPage.class); >> >> public abstract void setExceptions(ExceptionDescription[] exceptions); >> >> public void setException(Throwable value){ >> >> value.printStackTrace(); >> try { >> /* Send email with the error msg */ >> getCommunicationService().sendErrorExceptionEmail(value); >> } catch (Throwable exept) { >> // DO NOTHING... >> } >> >> } >> >> } >> >> you can also create a filter in here that ignores the error msgs that's >> creates by the web spiders and bots... if you want to.. >> >> Cheers, >> Jacob >> >> >> Josh Joy wrote: >> > >> > Hi, >> > >> > Sorry, though I've tried looking for the documentation >> > though I probably >> > just missed it... >> > If tapestry experiences an error, for example I have >> > an invalid HTML >> > template so it will have a parsing error, or perhaps I >> > have an >> > application error, Tapestry will display a very nice >> > exception page with >> > stack trace and various other info. This is helpful >> > for development, >> > though for production how can I define my own error >> > page? >> > >> > Thanks, >> > Josh >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Create-error-page-T4.0.2-tf3659480.html#a10227693 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com