• 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
Re: overriding ALL exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overriding ALL exceptions


  • Subject: Re: overriding ALL exceptions
  • From: Marek Wawrzyczny <email@hidden>
  • Date: Mon, 8 Nov 2004 12:09:05 +1100

Be very, very careful when doing this... Some exceptions can be thrown like every second if not more often... if you email every single one, your email server could get a nasty shock when things go wrong (such as the database connection going down, etc) ;)

We have a special email handler class now that captures identical exceptions and only resends them after a couple of hours... we keep track of number of occurrences and other interesting things. It's really nothing much more than a simple hashtable and a careful use of hashcode() functions on different bits of the exceptions.

Cheers,

Marek


On 05/11/2004, at 03:25, Nathan Dumar wrote:

Thank you both for the ideas. I'll post back soon (maybe next week?) with my solution.

Take care,
Nathan


On Nov 3, 2004, at 9:10 PM, Chuck Hill wrote:

Exceptions not caught elsewhere can be caught in the handleException method
in Application. Some, OutOfMemory, can't always be caught. The frameworks
also catch and eat (naughty frameworks!) exceptions in a few places.



Chuck


I am still pretty new to WO so I do not know of or if there is a way
specifically in WO to do this; however, within Java you can redirect stdout
and stderr to pretty much anywhere you like. Check out System.setOut and
System.setErr.


Darich

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


This email sent to email@hidden


Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
http://www.ish.com.au
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400

_______________________________________________
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


References: 
 >overriding ALL exceptions (From: Nathan Dumar <email@hidden>)
 >Re: overriding ALL exceptions (From: Chuck Hill <email@hidden>)
 >Re: overriding ALL exceptions (From: Nathan Dumar <email@hidden>)

  • Prev by Date: Re: EOF inserts PK automatically
  • Next by Date: Re: EOF inserts PK automatically
  • Previous by thread: Re: overriding ALL exceptions
  • Next by thread: Re: WebObjects and VPN
  • Index(es):
    • Date
    • Thread