Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparently Doctrine_Connection_Exception doesn't support getPrevious() method... #6

Open
makasim opened this issue Jun 15, 2011 · 2 comments

Comments

@makasim
Copy link
Owner

makasim commented Jun 15, 2011

No description provided.

@makasim
Copy link
Owner Author

makasim commented Jun 15, 2011

the solution could be:

if (is_callable(array($e, "getPrevious")))
{
    $count = 1; 
    while ($previous = $e->getPrevious())
    {
        $message->addSection("Previous Exception #{$count}", $this->notifier()->helper()->formatException($previous));

        $e = $previous;
        $count++;
    }
}

@66Ton99
Copy link

66Ton99 commented Jul 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants