• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Handling exceptions in dispatchRequest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handling exceptions in dispatchRequest


  • Subject: Handling exceptions in dispatchRequest
  • From: Kaj Hejer <email@hidden>
  • Date: Wed, 9 Feb 2005 19:54:32 +0100

Hi!

In our WO5.2 applications we get

<html><head><title>Error</title></head><body>Your request produced an error.</body></html>

when trying to access the application f.x. if the database is down and there is thrown an exception in dispatchRequest.

From what I have understood a fix for this is to override dispatchRequest and add a try/catch block.

Other ideas? :)

In the catchblock we want to call our own Application.handleException(exception, context) but in dispatchRequest we don't have access to the context. Should we just create a new WOContext? How? :)

TIA!


-Kaj :)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Handling exceptions in dispatchRequest
      • From: Zak Burke <email@hidden>
  • Prev by Date: Re: Targets
  • Next by Date: Re: Handling exceptions in dispatchRequest
  • Previous by thread: Re: Targets
  • Next by thread: Re: Handling exceptions in dispatchRequest
  • Index(es):
    • Date
    • Thread