Skip to content

Unable to catch exceptions #123

Description

@Zxurian

I have a particularly long running migration that fails out because of the usual "MySQL server has gone away"

I'm trying to catch the PDOExceptions for that if it does, just reconnect, however even just a basic try/catch around my code doesn't seem to be triggering my catches.

Even something as basic as

public function up(){

    try {
        causeException();
    } catch (\Exception $e) {
        var_dump($e);
        die();
    }
}

I'm getting img before any handling of the exception inside my catch block.

Is there anything from phpmig that is intercepting exceptions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions