yii\web\ErrorHandler::getExceptionName PHP Метод

getExceptionName() публичный Метод

Returns human-readable exception name
public getExceptionName ( Exception $exception ) : string
$exception Exception
Результат string human-readable exception name or null if it cannot be determined
    public function getExceptionName($exception)
    {
        if ($exception instanceof \yii\base\Exception || $exception instanceof \yii\base\InvalidCallException || $exception instanceof \yii\base\InvalidParamException || $exception instanceof \yii\base\UnknownMethodException) {
            return $exception->getName();
        }
        return null;
    }