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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:01:54+00:00 2026-05-25T20:01:54+00:00

I do not know much about these technologies, and was not very successful at

  • 0

I do not know much about these technologies, and was not very successful at finding how an exception stack is displayed.

Therefore, several basic questions:

  • how are 2 independent successive exceptions shown?
  • how are several chained exceptions displayed?
  • is the root cause displayed at the top or the bottom of the stack?
  • 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-25T20:01:55+00:00Added an answer on May 25, 2026 at 8:01 pm

    It’s pretty easy to try this for yourself. For example:

    using System;
    
    class Test
    {
        static void Main(string[] args)
        {
            try
            {
                Top();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
    
        static void Top()
        {
            try
            {
                Middle();
            }
            catch (Exception e)
            {
                throw new Exception("Exception from top", e);
            }
        }
    
        static void Middle()
        {
            try
            {
                Bottom();
            }
            catch (Exception e)
            {
                throw new Exception("Exception from middle", e);
            }
        }
    
        static void Bottom()
        {
            throw new Exception("Exception from bottom");
        }
    }
    

    Results (the first two lines would be on one line if it were long enough):

    System.Exception: Exception from top ---> System.Exception: Exception from middle
          ---> System.Exception: Exception from bottom
       at Test.Bottom() in c:\Users\Jon\Test\Test.cs:line 43
       at Test.Middle() in c:\Users\Jon\Test\Test.cs:line 33
       --- End of inner exception stack trace ---
       at Test.Middle() in c:\Users\Jon\Test\Test.cs:line 37
       at Test.Top() in c:\Users\Jon\Test\Test.cs:line 21
       --- End of inner exception stack trace ---
       at Test.Top() in c:\Users\Jon\Test\Test.cs:line 25
       at Test.Main(String[] args) in c:\Users\Jon\Test\Test.cs:line 9
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just brainstorming, and don't really know much about these technologies yet. What I
I do not not know much about Regex, I want to try parsing sting
I know this isn't a unique issue but I've not had much luck finding
I'm not a developer, so I don't know too much about coding/programming. But I
I'm a C# developer for Windows and I know NOT THAT MUCH about web
As far as I know (not much I'll admit), the currently popular programming paradigms
I know XHTML CSS but PHP knowledge is not much and i want to
I know Singleton pattern has been discussed so much. But because I'm not fully
I'm not too good with SQL and I know there's probably a much more
Does anyone know any resources (books/websites/whatever) related to parsing. I'm not so much interested

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.