FatalErrorException.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * FatalErrorException 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. * Represents a fatal error
  21. *
  22. */
  23. class FatalErrorException extends Exception {
  24. /**
  25. * Constructor
  26. *
  27. * @param string $message
  28. * @param integer $code
  29. * @param string $file
  30. * @param integer $line
  31. */
  32. public function __construct($message, $code = 500, $file = null, $line = null) {
  33. parent::__construct($message, $code);
  34. if ($file) {
  35. $this->file = $file;
  36. }
  37. if ($line) {
  38. $this->line = $line;
  39. }
  40. }
  41. }