[Seaside] Seaside Error Handler for emailing the error

John Thornborrow john at pinesoft.co.uk
Wed May 7 12:52:04 UTC 2008


For a simple solution, create a subclass of WAErrorHandler and override 
#handleError:

EmailErrorHandler>>handleError: anError
	SMTPClient
		deliverMailFrom: 'foo at bar.com'
		to: 'bar at foo.com'
		text: 'Subject: Seaside error - ', anError messageText,'

The was an error!

', anError stackString: 100


Nevin Pratt wrote:
> Old versions of Seaside had an error handler that could email an 
> administrator the stack trace if an error occured.  I don't see that 
> option in the newer Seaside versions.  Am I overlooking something?
> 
> Nevin
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 

-- 
John Thornborrow
http://www.pinesoft.co.uk


******************************************************************************************************************************************
This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the addressee(s), nor may it be copied in anyway. If received in error, please contact the sender, then delete it from your system. Although this email and attachments are believed to be free of virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Pinesoft for any loss or damage arising in any way from receipt or use thereof. *******************************************************************************************************************************************


Pinesoft Limited are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA


More information about the seaside mailing list