This will result in a 404 response code. Usage example:
throw $this->createNotFoundException('Page not found!');
protected createNotFoundException ( string $message = 'Not Found', Exception $previous = null ) : |
||
$message | string | A message |
$previous | Exception | The previous exception |
return |