> -----Original Message----- > From: Danny Angus [mailto:[EMAIL PROTECTED] > Sent: 21 October 2003 10:43 > To: 'James Developers List' > Subject: RE: MailetException vs MessagingException > > > > > > > > Jason > > > In my way of thinking a MailetException ("there was a > problem")would > > be > > (mostly) classed as transient, whereas a MessagingException ("this > > message cannot be processed/delivered due a problem in it") would be > > permanent > > Just my 2p worth... > > Ha! I had it exactly the other way round, either way though I > don't feel that there's a good enough mapping of > transient/permanent onto the two exception types, which might > lead to a lot of messy conditional re-throwing. <grin> No. Having thought about it I think you're right. The only way to this might be to do have 3 types of exception then: TransientMailetException and PermanentMailetException, but you still might end up rethrowing exceptions all over the place. I think that MessagingException might become PermanentMessagingException instead, but I'm not sure how much value is being added here. You would also need to add attributes to give more meaningful error messages (either to the user or in the log). For example: -99 (database connection failed, will retry) -101 (please wait, resource locked/busy)
> > d. > > > > ************************************************************** > ************* > The information in this e-mail is confidential and for use by > the addressee(s) only. If you are not the intended recipient > (or responsible for delivery of the message to the intended > recipient) please notify us immediately on 0141 306 2050 and > delete the message from your computer. You may not copy or > forward it or use or disclose its contents to any other > person. As Internet communications are capable of data > corruption Student Loans Company Limited does not accept any > responsibility for changes made to this message after it was > sent. For this reason it may be inappropriate to rely on > advice or opinions contained in an e-mail without obtaining > written confirmation of it. Neither Student Loans Company > Limited or the sender accepts any liability or responsibility > for viruses as it is your responsibility to scan attachments > (if any). Opinions and views expressed in this e-mail are > those of the sender and may not reflect the opinions and > views of The Student Loans Company Limited. > > This footnote also confirms that this email message has been > swept for the presence of computer viruses. > > ************************************************************** > ************ > > > --------------------------------------------------------------------- > 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]