Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3499042
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:33:48+00:00 2026-05-18T12:33:48+00:00

Are there any negatives to catching an exception and just logging it? This is

  • 0

Are there any negatives to catching an exception and just logging it? This is like the bare minimum done on every exception catch, but it doesn’t really do anything about the exception.

I do believe this depends on the circumstances e.g. user-facing exception needs a popup etc. but something on the backend which the user doesn’t see, does not. Or maybe there’s more to it than just that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:33:49+00:00Added an answer on May 18, 2026 at 12:33 pm

    In general, do the right thing in each given situation. Sometimes, that means just logging the exception. In other cases, you can perform specific, targeted recovery.

    If a user has requested that you open a file, for example, and you catch a FileNotFoundException, it’s appropriate to report this to the user and provide them the opportunity to select a different file. Or if parsing a user-provided string triggers a FormatException (though you’ll often use a TryX pattern to avoid exceptions here), tell the user to enter a numeric string.

    Often, the best thing to do is not catch the exception at all. If you can’t do anything appropriate with it, let it bubble up to the root of your application stack, where you can log it, or often, just let it crash your application. If you don’t know why you’re seeing an exception, are you really sure your application is healthy, and won’t corrupt data?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Are there any O(1/n) algorithms? This just popped in my head for
Apologies if this question is a bit daft, but are there any negative repercussions
Trying to see if there are any negatives to adding HTML comments to my
This seems like a simple problem, but it is not intuitive to me. Say
Are there any negatives to creating huge strings? For instance, if we're reading in
I could not find the answer to this exact question but there are related
Are there any negative implications to chaining jQuery API calls on a selector? Negative
Are there any repercussions using Negative Primary Keys for tables (Identity Increment -1, Identity
Is there any functional difference in Python between a try statement and an if
Is there any way in Notepad++ (or even with another tool) to change the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.