import java.io.IOException; public class Throws { public void testMetode() throws IOException{ throw new IOException("throws error"); } }