title: Python : Java throws equivalent in python
body: <p>Not attempting to compare the languages but just for knowledge,</p>
  
  <p>Is there any way to have equivalent of java <code>throws</code> keyword/functionality  in Python?</p>
  
  <p>or the way we can recognize checked exception thrown by any method at static time?</p>
  
  <p>or Passing(chaining) exception handling responsibility?</p>
  
  <p>Java:</p>
  
  <pre><code>public void someMethod() throws SomeException
  {
  
  }
  </code></pre>
  
  <p>Python:</p>
  
  <pre><code>@someDecorator  # any way to do?
  def someMethod():
      pass
  </code></pre>