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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:26:29+00:00 2026-05-26T09:26:29+00:00

Well, maybe a odd question, but how would I handle unhandled exceptions only from

  • 0

Well, maybe a odd question, but how would I handle unhandled exceptions only from certain assemblies in a application, but including exceptions that originate from .NET itself, like for instance when you get a ADO.NET exception it originates from .NET assembly.

I need this because of working with the legacy application where I need unhandled exception handling only for a module consisting of several assemblies, and everything is in the same application in the end, as a part of same process.

Can I maybe catch exceptions on assembly level, instead on the global Application level ?

  • 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-26T09:26:30+00:00Added an answer on May 26, 2026 at 9:26 am

    Just check the stack trace and use throw; if you should not handle the exception.

    try
    {
        //something
    }
    catch (Exception err)
    {
        if (!err.StackTrace.Contains("YourAssemblyName"))
            throw;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, maybe it is a stupid question, but I cannot resolve this problem. In
Well, question maybe doesn't correct, but I give a shoot. My script: <a href=javascript:var%20u=location.href;window.open('http://localhost/url='+u);void(o)
Maybe I just don't know .NET well enough yet, but I have yet to
How do I get the last charge date/time from Android BatteryManager? Well maybe it's
I remember reading a law (well, maybe not exactly a law), but in software
Well maybe this is not the best title; but it's hard to convey my
Maybe the title of the question is not very self-explanatory but I don't know
In .NET (at least in the 2008 version, and maybe in 2005 as well),
Well, I'm learning Scala so this question may be too basic for most people.
Well the subject is the question basically. Are there any version control systems out

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.