Ajax And Erroraction

Is it possible to call a custom action to handle the display of exception error messages on an Ajax request?

MDomba wrote a tutorial, but it appears to be out of date. The class CErrorHandler appears to have changed since he wrote this tutorial. Reference to MDomba’s tutorial: