Studyon Minte9.com
Magento




Throw exception



Mage::throwException($this->__('Please enter a valid email address')); 


http://alanstorm.com/magento_exception_handling_developer_mode