Aşağıdaki yöntemlerin tümü Magento çekirdeğinde kullanılır, bu nedenle hangisi tercih edilir (veya en son "en iyi uygulama")?
Mage::throwException('Some Message')- 732 Kullanımlarthrow new Exception('Some Message')- 419 Kullanımlarthrow Mage::exception('Vendor_Module', 'Some Message')- 94 Kullanımlar
(birVendor_Module_Exceptionsınıf oluşturmanız gerekir )
grep -r throwException /path/to/magento/app/code/core | wc -l ; grep -r throw\ new /path/to/magento/app/code/core | wc -l ; grep -r throw\ Mage /path/to/magento/app/code/core | wc -l- bunun gibi bir şey - bunun için de aradığınızı bilmenizi gerektirir.