protected function initExceptionData(Message $message, Exception $exception)
    {
        $message->setLine($exception->getLine());
        $message->setFile($exception->getFile());

        $longText = "";

        do {
            $longText .= sprintf(
                "%s: %s (%d)\n\n%s\n",
                get_class($exception),
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getTraceAsString()
            );

            $exception = $exception->getPrevious();
        } while ($exception && $longText .= "\n--\n\n");

        $message->setFullMessage($longText);
    }
protected function initExceptionData(Message $message, Exception $exception)
    {
        $message->setLine($exception->getLine());
        $message->setFile($exception->getFile());

        $longText = "";

        do {
            $longText .= sprintf(
                "%s: %s (%d)\n\n%s\n",
                get_class($exception),
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getTraceAsString()
            );

            $exception = $exception->getPrevious();
        } while ($exception && $longText .= "\n--\n\n");

        $message->setFullMessage($longText);
    }
protected function initExceptionData ( Message $ message , Exception $ exception ) { $ message -> setLine ( $ exception -> getLine ( ) ) ; $ message -> setFile ( $ exception -> getFile ( ) ) ; $ longText = "" ; do { $ longText .= sprintf ( "%s: %s (%d)\n\n%s\n" , get_class ( $ exception ) , $ exception -> getMessage ( ) , $ exception -> getCode ( ) , $ exception -> getTraceAsString ( ) ) ; $ exception = $ exception -> getPrevious ( ) ; } while ( $ exception && $ longText .= "\n--\n\n" ) ; $ message -> setFullMessage ( $ longText ) ; }
Initializes Exceptiondata with given message

@param Message   $message
@param Exception $exception
Initializes Exceptiondata with given message