Files
study/Swoft_BackEndApi/app/Http/Controller/ExceptionController.php
2024-09-27 01:06:04 +08:00

22 lines
429 B
PHP
Executable File

<?php
namespace App\Http\Controller;
use App\Exception\ApiException;
use Swoft\Http\Server\Annotation\Mapping\Controller;
use Swoft\Http\Server\Annotation\Mapping\RequestMapping;
/**
* @Controller(prefix="ex")
*/
class ExceptionController
{
/**
* @RequestMapping(route="api")
*
* @throws ApiException
*/
public function api(){
throw new ApiException("api of ExceptionController");
}
}