PrivateActionException.php 1002 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * PrivateActionException class
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/2.0/en/development/testing.html
  15. * @since CakePHP(tm) v 3.0
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. namespace Cake\Error;
  19. /**
  20. * Private Action exception - used when a controller action
  21. * starts with a `_`.
  22. *
  23. */
  24. class PrivateActionException extends Exception {
  25. protected $_messageTemplate = 'Private Action %s::%s() is not directly accessible.';
  26. public function __construct($message, $code = 404, Exception $previous = null) {
  27. parent::__construct($message, $code, $previous);
  28. }
  29. }