PageOutOfBoundsException.php 840 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://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. (http://cakefoundation.org)
  10. * @since 3.5.0
  11. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  12. */
  13. namespace Cake\Datasource\Exception;
  14. use Cake\Core\Exception\Exception;
  15. /**
  16. * Exception raised when requested page number does not exist.
  17. */
  18. class PageOutOfBoundsException extends Exception
  19. {
  20. /**
  21. * {@inheritDoc}
  22. */
  23. protected $_messageTemplate = 'Page number %s could not be found.';
  24. /**
  25. * {@inheritDoc}
  26. */
  27. protected $_defaultCode = 404;
  28. }