title: Handling exceptions in WCF service?
body: <p>I have project in which i am calling soap based service . I am using fault and communication exception as mostly two of these exception occurs in calling of api. but what if any other exception occurs instead of these two exception in soap api ? </p>
  
  <pre><code>    try
      {
        //soap api
      }
      catch(FaultException ex)
      {
      }
      catch(CommunicationException ex)
      {
      }
  </code></pre>
  
  <p>Later on i read on internet about soap exception class. and i am considering to change my code like :</p>
  
  <pre><code>     try
      {
        //soap api
      }
  
      catch(SoapException ex)
      {
      }
  </code></pre>
  
  <p>Now what i need to know is if i use Soap Exception instead of fault and communication exception . would it be good ? all i need is the catch the exception if it occurs in soap api. however i want to know does the soap api also handles the fault and communication exception or i have to explicitly define my code like ?</p>
  
  <pre><code> try
      {
        //soap api
      }
      catch(FaultException ex)
      {
      }
      catch(CommunicationException ex)
      {
      }
      catch(SoapException ex)
      {
      }
  </code></pre>