public function getExceptionName($exception)
    {
        if ($exception instanceof \yii\exceptions\Exception || $exception instanceof \yii\exceptions\InvalidCallException ||
            $exception instanceof \yii\exceptions\InvalidArgumentException ||
            $exception instanceof \yii\exceptions\UnknownMethodException) {
            return $exception->getName();
        }

        return null;
    }
public function getExceptionName($exception)
    {
        if ($exception instanceof \yii\exceptions\Exception || $exception instanceof \yii\exceptions\InvalidCallException ||
            $exception instanceof \yii\exceptions\InvalidArgumentException ||
            $exception instanceof \yii\exceptions\UnknownMethodException) {
            return $exception->getName();
        }

        return null;
    }
public function getExceptionName ( $ exception ) { if ( $ exception instanceof \ yii \ exceptions \ Exception || $ exception instanceof \ yii \ exceptions \ InvalidCallException || $ exception instanceof \ yii \ exceptions \ InvalidArgumentException || $ exception instanceof \ yii \ exceptions \ UnknownMethodException ) { return $ exception -> getName ( ) ; } return null ; }
Returns human-readable exception name.
@param \Exception $exception
@return string human-readable exception name or null if it cannot be determined
Returns human - readable exception name .