Re: email from catch or exception
On 12/11/2013 9:09 PM, Eric Sosman wrote:
On 12/11/2013 6:23 PM, RVic wrote:
On Wednesday, December 11, 2013 5:55:34 PM UTC-5, RVic wrote:
Is anyone aware of a public domain package that can email you on an
error, include the stack trace or log, whenever an exception occurs?
Thank you, RVic
Looking to send an email on exceptions that are caught, and a general
one for those that are uncaught.
I dont mind if there are a ton of emails!
I honestly do not know how many exceptions are thrown each
second in a "typical" Java program. [...]
.... but I found a twelve-year-old paper about optimizing both
the exceptional and unexceptional execution paths ("A Study of
Exception Handling and Its Dynamic Optimization in Java," by
Ogasawara, Komatsu, and Nakatani). It contains a table counting
how many exceptions are thrown by various programs. Some excerpts:
- Web browser opening one (2001-vintage) page: 2,892 exceptions
- MP3 player starting and loading one file: 8,205 exceptions
- Parse one XML file (size? complexity?): 17,640 exceptions
- One program in SPECjvm98 (now obsolete): 242,318 exceptions
Now: Speaking slowly, distinctly, and directly into the
carnation in my buttonhole, explain once again that you "dont
mind if there are a ton of emails."
--
Eric Sosman
esosman@comcast-dot-net.invalid