exception.class.php 579 B

1234567891011121314151617181920212223
  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 = []){
  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. $this->included = $included;
  17. }
  18. public function getIncluded(){
  19. return $this->included;
  20. }
  21. }
  22. ?>