protected handleNotFound ( ) : Orno\Http\ResponseInterface | ||
return | Orno\Http\ResponseInterface |
protected function handleNotFound()
{
$exception = new HttpException\NotFoundException();
if ($this->getStrategy() === RouteStrategyInterface::RESTFUL_STRATEGY) {
return $exception->getJsonResponse();
}
throw $exception;
}