title: How to throw a List<CustomExceptionObj> Exception at once
body: <p>I have a wcf service, for which I now have made a change to keep compiling my exceptions when they occur into a list, and at the end, throw this list as an Error response. Now single errors is fine. I'm able to throw that and get the output. But throwing the list as an error is proving to be a little challenging. </p>
  
  <p>-What I have tried till now: using AggregateException. I tried sniffing around for a proper implementation. So far, came up with this:</p>
  
  <pre><code>throw new AggregateException("Multiple Errors Occured", ExceptionsList)
  </code></pre>
  
  <p>Also,</p>
  
  <pre><code>List&lt;CustomExceptionObject&gt; ThrowException(List&lt;CustomExceptionObject&gt; ExceptionList)
  {
  AggregateException eggExp = new AggregateException(ExceptionList);
  throw new eggExp;
  }
  </code></pre>
  
  <p>I keep getting Unhandled Exception error using these method. 
  Any insight is appreciated.</p>
  
  <p><strong>UPDATE</strong>: The error message that I keep getting is - </p>
  
  <pre><code>An exception of type 'System.AggregateException' occurred in XYZ.dll but was not handled in user code.
  </code></pre>
  
  <p>Keep in mind that throwing a single object of my CustomExceptionObject throws a proper error response in SOAP UI. I can't seem to pull of a list of these exception.</p>