烦恼:之前总是在控制器每个方法中重复写try catch异常捕获感觉非常繁琐
```php
// 之前写的 伪代码
class DemoController
{
public function testreturn parent::render($request, $exception); // TODO: Change the autogenerated stub
}
}
```
第二步[
// '' => support\exception\Handler::class,
'api' => support\Exception::class,
];
```
现在在控制器写法伪代码