mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
...not based on status code. To simplify this logic, we now use the same error "type" both when routes are not found and specific models are not found. One exception is ours, one is from Laravel, but for the purposes of error handling they should be treated the same. Fixes flarum/core#1641.
24 lines
458 B
PHP
24 lines
458 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Http\Exception;
|
|
|
|
use Exception;
|
|
use Flarum\Foundation\KnownError;
|
|
|
|
class RouteNotFoundException extends Exception implements KnownError
|
|
{
|
|
public function getType(): string
|
|
{
|
|
return 'not_found';
|
|
}
|
|
}
|