MissingActionException.php 937 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  10. * @since 3.0.0
  11. * @license https://opensource.org/licenses/mit-license.php MIT License
  12. */
  13. namespace Cake\Controller\Exception;
  14. use Cake\Core\Exception\Exception;
  15. /**
  16. * Missing Action exception - used when a controller action
  17. * cannot be found, or when the controller's isAction() method returns false.
  18. */
  19. class MissingActionException extends Exception
  20. {
  21. /**
  22. * {@inheritDoc}
  23. */
  24. protected $_messageTemplate = 'Action %s::%s() could not be found, or is not accessible.';
  25. /**
  26. * {@inheritDoc}
  27. */
  28. protected $_defaultCode = 404;
  29. }