diff --git a/libraries/src/MVC/Model/Exception/ModelExceptionInterface.php b/libraries/src/MVC/Model/Exception/ModelExceptionInterface.php new file mode 100644 index 0000000000000..84223db34a57c --- /dev/null +++ b/libraries/src/MVC/Model/Exception/ModelExceptionInterface.php @@ -0,0 +1,25 @@ + + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +namespace Joomla\CMS\MVC\Model\Exception; + +// phpcs:disable PSR1.Files.SideEffects +\defined('JPATH_PLATFORM') or die; +// phpcs:enable PSR1.Files.SideEffects + +/** + * Interface that all exceptions stemming from the model should implement for processing by the controller. + * It is expected that the controller should catch all exceptions that implement this interface and then + * make a decision as to whether the exception can be recovered from or not. + * + * @since __DEPLOY_VERSION__ + */ +interface ModelExceptionInterface extends \Throwable +{ +}