Translations:Developers/Object oriented programming in PHP/Exceptions/11/en

The Arcavias code uses specific exceptions per domain, e.g. all exceptions thrown in the code of the product domain are objects of the MShop_Product_Exception class extending the MShop_Exception and indirectly the PHP build-in Exception class. Thus, it's possible to create catch blocks for each domain or for all MShop related code: