Please don't define custom exception classes. This is widely considered bad practice in JS. In YUI, you should use `Y.error()`.