protected function getTextMessage($exception)
	{
	    $message = 'Application Exception' . PHP_EOL;
	    $message .= static::getItemTextMessage($exception);
	    while ($exception= $exception->getPrevious()) {
	        $message .= PHP_EOL . 'Previous exception:' . PHP_EOL;
	        $message .= static::getItemTextMessage($exception);
	    }
	    return $message;
	}
protected function getTextMessage($exception)
	{
	    $message = 'Application Exception' . PHP_EOL;
	    $message .= static::getItemTextMessage($exception);
	    while ($exception= $exception->getPrevious()) {
	        $message .= PHP_EOL . 'Previous exception:' . PHP_EOL;
	        $message .= static::getItemTextMessage($exception);
	    }
	    return $message;
	}
protected function getTextMessage ( $ exception ) { $ message = 'Application Exception' . PHP_EOL ; $ message .= static :: getItemTextMessage ( $ exception ) ; while ( $ exception = $ exception -> getPrevious ( ) ) { $ message .= PHP_EOL . 'Previous exception:' . PHP_EOL ; $ message .= static :: getItemTextMessage ( $ exception ) ; } return $ message ; }
getexception text content

@param  Exception $exception

@return string
getexception text content