1
0

exception.class.php 651 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Juju\App;
  3. class Exception extends \Exception {
  4. private $included;
  5. public function __construct($message = null, $code = 0, \Exception $previous = null, string $file = null, int $line = null, array $trace = null, array $included = null){
  6. parent::__construct($message, $code, $previous);
  7. if(!is_null($file)){
  8. $this->file = $file;
  9. }
  10. if(!is_null($line)){
  11. $this->line = $line;
  12. }
  13. if(!is_null($trace)){
  14. $this->trace = $trace;
  15. }
  16. if(is_null($included)){
  17. $included = get_included_files();
  18. }
  19. $this->included = $included;
  20. }
  21. public function getIncluded(){
  22. return $this->included;
  23. }
  24. }
  25. ?>