first commit
This commit is contained in:
21
Swoft_BackEndApi/app/Http/Controller/ExceptionController.php
Executable file
21
Swoft_BackEndApi/app/Http/Controller/ExceptionController.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user