Skip to content

Commit

Permalink
Updated custom exception constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldrennen committed Feb 28, 2024
1 parent 92aed31 commit 4722170
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Exceptions/Exception404Returned.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@
*/
class Exception404Returned extends \Exception {

public string $url = '';

public function __construct( string $message = "", int $code = 0, ?\Throwable $previous = NULL, string $url = '' ) {
parent::__construct( $message, $code, $previous );

$this->url = $url;
}
}

0 comments on commit 4722170

Please sign in to comment.