public function getShortMessage()
    {
        $msg = $this->getMessage();
        if (\strpos($msg, '(): ') !== false) {
            list(, $msg) = \explode('(): ', $msg);
        }

        return $msg;
    }
public function getShortMessage()
    {
        $msg = $this->getMessage();
        if (\strpos($msg, '(): ') !== false) {
            list(, $msg) = \explode('(): ', $msg);
        }

        return $msg;
    }
public function getShortMessage ( ) { $ msg = $ this -> getMessage ( ) ; if ( \ strpos ( $ msg , '(): ' ) !== false ) { list ( , $ msg ) = \ explode ( '(): ' , $ msg ) ; } return $ msg ; }
Return exception message without function name.

Usual exception message looks like this:
<pre>
preg_match(): Some error occurred
</pre>
So we strip the "function(): " part.

@return string
Return exception message without function name .