@qiangxue Better?

Because of this:
```PHP
if ($exception instanceof \yii\base\Exception) {
    $name = $exception->getName();
}
```