title: Interview_Question on Custom Exception in C#
body: <p>I faced a question on Custom Exceptions in an Interview. As below there are four multiple catches which catch each custom exception. Interviewer asked me to write a pseudo code for catch blocks how i can handle all four custom exceptions.</p>
  
  <p><img src="https://i.stack.imgur.com/KyLrd.jpg" alt="enter image description here"></p>
  
  <p><strong>I answered as</strong> </p>
  
  <pre><code>        try 
          {   try 
              {
                  try { }
                  catch (DEx dEx) { Console.WriteLine(dEx.Message); }
              }
              catch (BEx bEx) { Console.WriteLine(bEx.Message); }
              catch (CEx cEx) { Console.WriteLine(cEx.Message); }
          }
          catch (AEx aEx) { Console.WriteLine(aEx.Message); }  
  </code></pre>
  
  <p>Is it correct or wrong?</p>