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

  • SEARCH
  • Home
  • 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 959901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:05:53+00:00 2026-05-16T01:05:53+00:00

please verify me if I am right: when a program encounters a exception we

  • 0

please verify me if I am right: when a program encounters a exception we should write code to handle that exception, the handler should do some recovery job, like rerun the program, but is not just telling us where we went wrong in real world application.

  • 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-16T01:05:53+00:00Added an answer on May 16, 2026 at 1:05 am

    When you throw an exception you’re saying:
    “Something happened and I can’t handle it here. I’m passing the buck!”

    When you catch you say:
    “Ok I can do something. Perhaps loop around and try again; maybe log an error message”.
    You can even choose to ignore the error but that’s usually discouraged.

    In general the thrower captures the state of the failure and the catcher acts on the failure.
    In real life, exceptions don’t always make error handling easier; but it helps keeps errors out of the main line code path. It’s an alternate execution flow. You often hear this: “Exceptions should be used only for exceptional things.”

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

Sidebar

Related Questions

hello Friends please verify my code Is it a right way to pass optional
Can some CSS ninja please verify if my thought process is right or wrong.
C++ newbie question. Please, verify I'm doing it right. I have a global application
please have a look at the following code import java.util.ArrayList; import java.util.List; public class
Please i need help, this code below works fine on my localhost, php5.3+ but
When we write java code we use JPA interfaces as its a java specification
Could someone please verify whether inner join is valid with UPDATE statment in PL
Want to just confirm on following. Please verify if this is correct: 1. As
Not sure if I'm asking the right question so please bear with me! Bit
Please note that I am very new to .NET and ASP.NET. I have a

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.