title: Is there a throws keyword in C# like in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3465465/how-to-use-java-style-throws-keyword-in-c">how to use Java-style throws keyword in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>i have a function where an exception occurs
  say for example</p>
  
  <pre><code>private void functionName() throws Exception
  {
     // some code that might throw an exception
  }
  </code></pre>
  
  <p>thanks!</p>