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 7671105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:58:28+00:00 2026-05-31T15:58:28+00:00

Is there any case where catch block is skipped when an Exception is raised

  • 0

Is there any case where catch block is skipped when an Exception is raised
say

try 
{
  some code
}
catch(Exception ex)
{
  some code
}

I am using Exception class as it catches all the Exceptions.

  • 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-31T15:58:30+00:00Added an answer on May 31, 2026 at 3:58 pm

    You might have problems with StackOverflowException (see List of exceptions that CAN'T be caught in .NET)

    There is another family of cases, specifically when the thing thrown wasn’t an Exception, but this is only if you are either in 1.1, or don’t have automatic exception wrapping enabled (it is enabled by default from 2.0) – it is theoretically possible for C++ to throw anything (not just an Exception), so if your “some code” calls into some C++ that throws, say, a string, then in theory you could miss it.

    In reality this is rarely (if ever) a real problem:

    • the automatic wrapping is enabled by default
    • most C++ code talking to .NET throws Exception (or a subclass) to be well-behaved

    In such cases, a catch { ... } will work to intercept that something was thrown, but won’t tell you what happened.

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

Sidebar

Related Questions

Is there any overhead in Java for using a try/catch block, as opposed to
Is there any solution to overcome case-sensitive problem for contains method. I have code
Is there any overhead using partial classes in case of memory, performance etc? If
Besides readability is there any significant benifit to using a CASE WHEN statement vs
Is there any difference between a volatile Object reference and AtomicReference in case I
Is there any way to do the following in HQL: SELECT case when flag
Is there any way to (unit) test my own HtmlHelpers? In case when I'd
Ignoring the IE case, are there any other browsers that can't understand the application/xhtml+xml
The default seems to be upper case, but is there really any reason to
Is there any way to check whether a file is locked without using 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.