Exception Handling in Merb

[caption id="" align=“alignright” width=“224” caption=“Mint was originally used as a medicinal herb to treat stomach ache and chest pains. (Something developers eating too much pizza know a bit too well)"]Mint was originally used as a medicinal herb to treat stomach ache and chest pains. (Something developers eating too much pizza know a bit too well)[/caption]

Paul Sadauskas aka Rando posted a very interesting article showing how he handles exceptions in his JSON webservices built on top of Merb.

  • After discussing with NewBamboo guys it was decided to move their merb_exceptions plugin to merb-plugins. The notifier currently supports two interfaces, Email Alerts and Web Hooks. Emails are formatted as plain text and sent using your Merb environment’s mail settings. Web hooks as sent as post requests. Railists moving over to this side of the fence will not have to develop their own exception_notification plugin anymore. Note the NewBamboo team will keep on maintaining the plugin, we just moved it the set of official plugins.

  • We got some reports of problems killing workers when using DataMapper and HEAD from yesterday, this is a known problem which should be fixed in the next few days at the latest. (use merb -K all to kill your workers instead of ctrl+c)


181 Words

2008-10-01

comments powered by Disqus