title: How to make android onCreate throw exceptions
body: <p>I am using Jackson on android to parse a JSON file into an object, and the <strong>object mapper (or object mapper.readvalue, I am not sure) throws an IOException</strong>.</p>
  
  <p>So I added throws IOException to my method.</p>
  
  <pre><code>public TextBox JsonToTextBox () throws IOException {
  }
  </code></pre>
  
  <p>My problem is that I am calling that method from <code>onCreate</code>, which doesn't let me throw an exceptions. Any ideas?</p>
  
  <p><a href="http://i.stack.imgur.com/T0KNR.png" rel="nofollow">Image which explains why I cant throw exceptions</a></p>
  
  <p>I know, I can use a try catch, I was just looking how to do it by throwing an exception from onCreate, thanks for the answers though</p>