AJAX scaffolding session weirdness

You can raise only objects inherited from Exception class.