import java.io.IOException; public class MainClass { public static void main(String[] argv) { System.out.println(); } public static void m() throws IOException { IOException x = new IOException("your message."); throw x; } }