Here you can find the source of getExceptionName(IOException ex)
public static String getExceptionName(IOException ex)
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { public static String getExceptionName(IOException ex) { return ex.getClass().getSimpleName(); }//from www . j a v a2s .c o m }