Skip to content

Commit

Permalink
QA: Add apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 20, 2024
1 parent 05bbb8a commit ccf914a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/php/web/NotFound.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
class NotFound extends Error {
public $path;

/**
* Creates a "Not Found" error
*
* @param string $path
* @param ?lang.Throwable $cause
*/
public function __construct($path, $cause= null) {
parent::__construct(404, 'Cannot find '.$path, $cause);
$this->path= $path;
Expand Down

0 comments on commit ccf914a

Please sign in to comment.