EventListener/ExceptionListener.php
private function getMessage(\Exception $exception)
    {
        $message = $exception->getMessage();

        if ($this->isApiException($exception)) {
            $message = $exception->getMessageWithVariables();
        }

        return $message;
    }
private function getMessage(\Exception $exception)
    {
        $message = $exception->getMessage();

        if ($this->isApiException($exception)) {
            $message = $exception->getMessageWithVariables();
        }

        return $message;
    }
private function getMessage ( \ Exception $ exception ) { $ message = $ exception -> getMessage ( ) ; if ( $ this -> isApiException ( $ exception ) ) { $ message = $ exception -> getMessageWithVariables ( ) ; } return $ message ; }
Get exception message

@param \Exception $exception

@return integer
Get exception message