Skip to content

Handling QueryException through sentry #94

@zeshan-inquiron

Description

@zeshan-inquiron

I'm unable to monitor my 'QueryException' through sentry. As per the docs, below is my code I placed in App\Exceptions\Handler.php@report

public function report(Exception $exception)
    {
        if ($this->shouldReport($exception)) {
            app('sentry')->captureException($exception);
        }
        parent::report($exception);
    }

All the other exceptions like 500, 404 are working fine, but QueryException is not getting caught. Am I missing something here?

Thanks

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