Constructor that handles exception
<p>How can i make constructor that can handle IOException</p>

<p>this is the class with constructor</p>

<pre><code>public class RootProcess {
Process process;

public RootProcess() throws IOException {

}

public RootProcess(Process process){
    this.process = process;
}

public Process getProcess() {
    return process;
}

public void setProcess(Process process) {
    this.process = process;
}


}
</code></pre>

<p>And this is how i declare it</p>

<pre><code>RootProcess process = new RootProcess(Runtime.getRuntime().exec("su"));
</code></pre>

<p>but i get this error in eclipse</p>

<pre><code>Default constructor cannot handle exception type IOException thrown by implicit super constructor. Must define an explicit constructor
</code></pre>
