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

Ignore Exceptions #24

Closed
luisdalmolin opened this issue Sep 17, 2014 · 3 comments
Closed

Ignore Exceptions #24

luisdalmolin opened this issue Sep 17, 2014 · 3 comments

Comments

@luisdalmolin
Copy link

Is there a way to ignore some exceptions?

Like: Symfony\Component\HttpKernel\Exception\NotFoundHttpException and Illumiante\Database\Eloquent\ModelNotFoundException.

@mikevrind
Copy link

Do you happen to have any more news about this issue?
I'm experiencing the same problem with the above exceptions. Both are caught, but are still popping up in Bugsnag.

@loopj
Copy link
Contributor

loopj commented Jan 5, 2015

Hey @mikevrind, @luisdalmolin. We don't support this in the notifier right now, but you can choose which classes to ignore in your Bugsnag dashboard, under Settings -> Error Handling -> Ignored Errors.

I hope this helps!

@loopj loopj closed this as completed Jan 5, 2015
@loopj
Copy link
Contributor

loopj commented Jan 5, 2015

Actually, there is a way to do this in code too, by using Bugsnag::setBeforeNotify:

Bugsnag::setBeforeNotifyFunction("before_bugsnag_notify");

function before_bugsnag_notify($error) {
    if($error->name == "Symfony\Component\HttpKernel\Exception\NotFoundHttpException") {
      return false;
    }
}

See here for more information.

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

3 participants