yii\web\ErrorHandler::getExceptionName PHP Method

getExceptionName() public method

Returns human-readable exception name
public getExceptionName ( Exception $exception ) : string
$exception Exception
return 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;
    }