How to deal with a specific type of expection
<pre><code>class A{
    public static void main(String[]args){
         int = 0;
         try{
         i = Integer.parseInt(args[0]);
         }
        catch()
        System.out.println("this value of i is" + i);
}
</code></pre>

<p>How can I print exception using toString if a exception occurs. I am assuming of only one command line argument here.</p>
