I was just checking out the (relatively) new error handling stuff, and it occured to me that the ability to "throw" your own error messages (like the throw statement in Java and Visual Basic, et al.) would be handy.

Ideally a 'throw' command would fill $error with the specified text then behave the same way a normal error does.