update ControllerTrait.php to new exception name in cake3